summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2012-05-28 20:29:08 (GMT)
committerfvogelnew1@free.fr <fvogel>2012-05-28 20:29:08 (GMT)
commitde7e506bf622553538e961b6aba719e07a18caf7 (patch)
tree00bcc211ec068bf94da101f63308b49a4af558bd
parent8e161a5ea9300c955a6ab3fe82a30d3b85866636 (diff)
parent88f9077135c1aa18a28b4af2557a14a64f135b59 (diff)
downloadtk-de7e506bf622553538e961b6aba719e07a18caf7.zip
tk-de7e506bf622553538e961b6aba719e07a18caf7.tar.gz
tk-de7e506bf622553538e961b6aba719e07a18caf7.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 3e4aa5d..ef24e19 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 d0cd4d2..7891a2c 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -2005,8 +2005,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);