diff options
author | fvogel <fvogelnew1@free.fr> | 2014-12-28 20:58:10 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2014-12-28 20:58:10 (GMT) |
commit | 3c2b8c528158a93d619459fb955cfb489b11b705 (patch) | |
tree | da9941a9756ac0c3e03ea20b0207f748beccb3ec /generic/tkTextDisp.c | |
parent | 00c90a36f723fb24cce340db3aaadeac2d26c23b (diff) | |
download | tk-3c2b8c528158a93d619459fb955cfb489b11b705.zip tk-3c2b8c528158a93d619459fb955cfb489b11b705.tar.gz tk-3c2b8c528158a93d619459fb955cfb489b11b705.tar.bz2 |
Further fixed text see with indices in elided lines, [5f352f3a71] was not always correct
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r-- | generic/tkTextDisp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index be77550..4d9d042 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -5181,7 +5181,9 @@ TkTextSetYView( * If the line is not close, place it in the center of the window. */ - lineHeight = CalculateDisplayLineHeight(textPtr, indexPtr, NULL, NULL); + tmpIndex = *indexPtr; + TkTextFindDisplayLineEnd(textPtr, &tmpIndex, 0, NULL); + lineHeight = CalculateDisplayLineHeight(textPtr, &tmpIndex, NULL, NULL); /* * It would be better if 'bottomY' were calculated using the actual height |