diff options
author | fvogel <fvogelnew1@free.fr> | 2014-11-22 22:05:23 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2014-11-22 22:05:23 (GMT) |
commit | 58bfb704a36023f0fc71668f8904f0ddbd59ffa3 (patch) | |
tree | c317fadd5b72292cbd359b43339e1594918d4876 | |
parent | 9d5ff2c244a14567d97787d96edb42a207783f41 (diff) | |
download | tk-58bfb704a36023f0fc71668f8904f0ddbd59ffa3.zip tk-58bfb704a36023f0fc71668f8904f0ddbd59ffa3.tar.gz tk-58bfb704a36023f0fc71668f8904f0ddbd59ffa3.tar.bz2 |
Fixed bug [7703f947aa] - Wrong refresh of display lines when tagging text as elided
-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 f16c45b..d610d85 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -6429,6 +6429,7 @@ FindDLine( CONST TkTextIndex *indexPtr)/* Index of desired character. */ { TkTextLine *linePtr; + DLine *dlPtrPrev; if (dlPtr == NULL) { return NULL; @@ -6449,6 +6450,7 @@ FindDLine( linePtr = dlPtr->index.linePtr; while (linePtr != indexPtr->linePtr) { while (dlPtr->index.linePtr == linePtr) { + dlPtrPrev = dlPtr; dlPtr = dlPtr->nextPtr; if (dlPtr == NULL) { return NULL; @@ -6466,7 +6468,7 @@ FindDLine( } } if (indexPtr->linePtr != dlPtr->index.linePtr) { - return dlPtr; + return dlPtrPrev; } /* |