summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2014-12-30 17:08:43 (GMT)
committerfvogel <fvogelnew1@free.fr>2014-12-30 17:08:43 (GMT)
commitfea2ef2b4e93cc7d56bfbe9d6765392555c4a09f (patch)
tree03113515aeba7fdaf407509260e3c623efa97ef0 /generic
parent7fb708fd832dcf54c337e3bd92b80ad4166a041b (diff)
downloadtk-fea2ef2b4e93cc7d56bfbe9d6765392555c4a09f.zip
tk-fea2ef2b4e93cc7d56bfbe9d6765392555c4a09f.tar.gz
tk-fea2ef2b4e93cc7d56bfbe9d6765392555c4a09f.tar.bz2
Reverted [9f0edc127f] since this commit was not correct.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 058f85c..ec14e10 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -5151,8 +5151,7 @@ TkTextSetYView(
*/
textPtr->topIndex = *indexPtr;
- if (!(indexPtr->byteIndex == 0
- && !TkTextIsElided(textPtr, indexPtr, NULL))) {
+ if (indexPtr->byteIndex != 0) {
TkTextFindDisplayLineEnd(textPtr, &textPtr->topIndex, 0, NULL);
}
dInfoPtr->newTopPixelOffset = pickPlace;