diff options
author | fvogel <fvogelnew1@free.fr> | 2014-12-30 17:52:30 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2014-12-30 17:52:30 (GMT) |
commit | 58730bbafbd80704a0fa7d9edda21133025671cb (patch) | |
tree | 44348e0a31f2b007ead251764a792c5108f69490 /generic/tkTextDisp.c | |
parent | d9c4d9d8e4a33e5c2db90e104e77753976999e4f (diff) | |
download | tk-58730bbafbd80704a0fa7d9edda21133025671cb.zip tk-58730bbafbd80704a0fa7d9edda21133025671cb.tar.gz tk-58730bbafbd80704a0fa7d9edda21133025671cb.tar.bz2 |
Reverted [53f96d9a97] since this commit was not correct.
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r-- | generic/tkTextDisp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index c21b600..1383c2a 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -6299,11 +6299,13 @@ GetYPixelCount( /* * For the common case where this dlPtr is also the start of the logical - * line, we can return right away. + * line, we can return right away. Note the implicit assumption here that + * the start of a logical line is always the start of a display line (if + * the 'elide won't elide first newline' bug is fixed, this will no longer + * necessarily be true). */ - if ((dlPtr->index.byteIndex == 0) - && !TkTextIsElided(textPtr, &dlPtr->index, NULL)) { + if (dlPtr->index.byteIndex == 0) { return count; } |