From 175e66a8d3ccf89802ffa24c94e0b1edb0662108 Mon Sep 17 00:00:00 2001 From: hobbs Date: Tue, 17 Oct 2006 23:44:45 +0000 Subject: * generic/tkTextDisp.c (SizeOfTab): fix -tabstyle wordprocessor tab alignment to correct tab edge case. [Bug 1578858] --- ChangeLog | 5 +++++ generic/tkTextDisp.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bcc6e16..ae09f53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-17 Jeff Hobbs + + * generic/tkTextDisp.c (SizeOfTab): fix -tabstyle wordprocessor + tab alignment to correct tab edge case. [Bug 1578858] + 2006-10-17 Pat Thoyts * 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. -- cgit v0.12