diff options
-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. |