summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2012-05-28 20:30:42 (GMT)
committerfvogel <fvogelnew1@free.fr>2012-05-28 20:30:42 (GMT)
commit2911e0ff424c5b2bfcd825b9efd5775e2933e024 (patch)
treeb69b3024078fafa826fb81e475b8db5f6e536734
parente4f1d0b0e561cd967dc477cc6d7c843e2a5bf262 (diff)
parentc790c69f4461ba43323c402bacf8224c70041b09 (diff)
downloadtk-2911e0ff424c5b2bfcd825b9efd5775e2933e024.zip
tk-2911e0ff424c5b2bfcd825b9efd5775e2933e024.tar.gz
tk-2911e0ff424c5b2bfcd825b9efd5775e2933e024.tar.bz2
Bug 1630254: missing scrolling of text widget when from a -startline == -endline initial state it is configured to display a non-empty part of it
-rw-r--r--ChangeLog6
-rw-r--r--generic/tkTextDisp.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 16c6c47..4c61209 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-28 Francois Vogel <fvogelnew1@free.fr>
+
+ * generic/tkTextDisp.c: [Bug 1630254]: missing scrolling of text widget
+ when from a -startline == -endline initial state it is configured to display
+ a non-empty part of it
+
2012-05-24 Jan Nijtmans <nijtmans@users.sf.net>
* win/stubs.c: Change XSetCommand signature to match Xorg,
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index b3d94ec..b66bf71 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -2006,8 +2006,9 @@ UpdateDisplayInfo(
* widget.
*/
- lineNum = -1;
- bytesToCount = 0; /* Stop compiler warning. */
+ lineNum = TkBTreeNumLines(textPtr->sharedTextPtr->tree,
+ textPtr) - 1;
+ bytesToCount = INT_MAX;
} else {
lineNum = TkBTreeLinesTo(textPtr,
dInfoPtr->dLinePtr->index.linePtr);