summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2014-12-17 21:54:54 (GMT)
committerfvogel <fvogelnew1@free.fr>2014-12-17 21:54:54 (GMT)
commit9c98aee49acabd279f526bb618d14fc0567a1348 (patch)
tree2f253ce349dc8d6ab6494ebe720dc0642133ba4e /generic
parent59b9a21b7c5259458517dc0a1fb1ecfe31dd4ddd (diff)
downloadtk-9c98aee49acabd279f526bb618d14fc0567a1348.zip
tk-9c98aee49acabd279f526bb618d14fc0567a1348.tar.gz
tk-9c98aee49acabd279f526bb618d14fc0567a1348.tar.bz2
Fixed vertical scrolling with elided lines. MeasureUp was not measuring fully correctly.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index e87b5e8..e318338 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -5328,6 +5328,8 @@ MeasureUp(
index.linePtr = TkBTreeFindLine(srcPtr->tree, textPtr, lineNum);
index.byteIndex = 0;
+ TkTextFindDisplayLineEnd(textPtr, &index, 0, NULL);
+ lineNum = TkBTreeLinesTo(textPtr, index.linePtr);
lowestPtr = NULL;
do {
dlPtr = LayoutDLine(textPtr, &index);