diff options
author | fvogel <fvogelnew1@free.fr> | 2014-12-17 21:54:54 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2014-12-17 21:54:54 (GMT) |
commit | 9c98aee49acabd279f526bb618d14fc0567a1348 (patch) | |
tree | 2f253ce349dc8d6ab6494ebe720dc0642133ba4e /generic/tkTextDisp.c | |
parent | 59b9a21b7c5259458517dc0a1fb1ecfe31dd4ddd (diff) | |
download | tk-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/tkTextDisp.c')
-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); |