summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-10-17 23:44:45 (GMT)
committerhobbs <hobbs>2006-10-17 23:44:45 (GMT)
commit175e66a8d3ccf89802ffa24c94e0b1edb0662108 (patch)
treead259bea79b755d1f46ba738ed88ea0f43bed54b /generic
parente58a5fcd90ad9607b9357a1c82417e651ad8ae18 (diff)
downloadtk-175e66a8d3ccf89802ffa24c94e0b1edb0662108.zip
tk-175e66a8d3ccf89802ffa24c94e0b1edb0662108.tar.gz
tk-175e66a8d3ccf89802ffa24c94e0b1edb0662108.tar.bz2
* generic/tkTextDisp.c (SizeOfTab): fix -tabstyle wordprocessor
tab alignment to correct tab edge case. [Bug 1578858]
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 9dda358..d626520 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkTextDisp.c,v 1.59 2006/09/10 17:06:32 das Exp $
+ * RCS: @(#) $Id: tkTextDisp.c,v 1.60 2006/10/17 23:44:45 hobbs Exp $
*/
#include "tkPort.h"
@@ -7925,7 +7925,7 @@ SizeOfTab(
*
* With 'tabular' style tabs, we always use the index'th tab stop.
*/
- } while (tabX < x && (tabStyle == TK_TEXT_TABSTYLE_WORDPROCESSOR));
+ } while (tabX <= x && (tabStyle == TK_TEXT_TABSTYLE_WORDPROCESSOR));
/*
* Inform our caller of how many tab stops we've used up.