summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-01-07 15:35:04 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-01-07 15:35:04 (GMT)
commit14ce825dcd0062ad80540787437ee9decddd4ba1 (patch)
treefe35033258031da4aa2a9c7bbf602319a0fa41d6 /generic/tkTextDisp.c
parent202013b4ffd4f5ab925eeed4d3fdcaa4a40c552e (diff)
downloadtk-14ce825dcd0062ad80540787437ee9decddd4ba1.zip
tk-14ce825dcd0062ad80540787437ee9decddd4ba1.tar.gz
tk-14ce825dcd0062ad80540787437ee9decddd4ba1.tar.bz2
[Bug 2677890]: Fix odd text widget update problem that had scrollbars being
unable to cover the whole widget. Fix is to reify the range to update sooner.
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r--generic/tkTextDisp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 8477739..4256c36 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.68.2.1 2009/08/04 21:46:03 dkf Exp $
+ * RCS: @(#) $Id: tkTextDisp.c,v 1.68.2.2 2010/01/07 15:35:04 dkf Exp $
*/
#include "tkInt.h"
@@ -2902,8 +2902,9 @@ AsyncUpdateLineMetrics(
}
lineNum = dInfoPtr->currentMetricUpdateLine;
- if (lineNum == -1) {
- dInfoPtr->lastMetricUpdateLine = 0;
+ if (dInfoPtr->lastMetricUpdateLine == -1) {
+ dInfoPtr->lastMetricUpdateLine =
+ TkBTreeNumLines(textPtr->sharedTextPtr->tree, textPtr);
}
/*