diff options
author | fvogelnew1@free.fr <fvogel> | 2014-12-17 21:54:54 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2014-12-17 21:54:54 (GMT) |
commit | 7becac189388b2b361d17245298118ec46ffb62d (patch) | |
tree | 05c77b1a106cbcd4b422e6e96ac08bd125a039e1 /generic | |
parent | 2d36ec561f65aa77263cbb1123453b128e73703e (diff) | |
download | tk-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.c | 2 |
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); |