diff options
author | hobbs <hobbs> | 2006-10-17 23:44:45 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2006-10-17 23:44:45 (GMT) |
commit | 175e66a8d3ccf89802ffa24c94e0b1edb0662108 (patch) | |
tree | ad259bea79b755d1f46ba738ed88ea0f43bed54b | |
parent | e58a5fcd90ad9607b9357a1c82417e651ad8ae18 (diff) | |
download | tk-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]
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tkTextDisp.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2006-10-17 Jeff Hobbs <jeffh@ActiveState.com> + + * generic/tkTextDisp.c (SizeOfTab): fix -tabstyle wordprocessor + tab alignment to correct tab edge case. [Bug 1578858] + 2006-10-17 Pat Thoyts <patthoyts@users.sourceforge.net> * generic/tkText.c: Applied suggested patch from #1536735 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. |