summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2014-12-17 21:54:54 (GMT)
committerfvogelnew1@free.fr <fvogel>2014-12-17 21:54:54 (GMT)
commit7becac189388b2b361d17245298118ec46ffb62d (patch)
tree05c77b1a106cbcd4b422e6e96ac08bd125a039e1 /generic
parent2d36ec561f65aa77263cbb1123453b128e73703e (diff)
downloadtk-7becac189388b2b361d17245298118ec46ffb62d.zip
tk-7becac189388b2b361d17245298118ec46ffb62d.tar.gz
tk-7becac189388b2b361d17245298118ec46ffb62d.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);