summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-07-13 10:10:03 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-07-13 10:10:03 (GMT)
commitdef76faf990796ed8c158a61bd05d4b64ad17984 (patch)
treeebd7f3f0d87de685c4d40b3fd92a07756656330b /generic/tkTextIndex.c
parentcca425ff8bcd56986a3f6e11dd364b7b954dc121 (diff)
parent1b214cf0648595eb130820824655fec78109ed6c (diff)
downloadtk-def76faf990796ed8c158a61bd05d4b64ad17984.zip
tk-def76faf990796ed8c158a61bd05d4b64ad17984.tar.gz
tk-def76faf990796ed8c158a61bd05d4b64ad17984.tar.bz2
Fixed bug [3f1f79abcf] - Text widget crash when seeing or bboxing (or selecting, moving the cursor...) in elided text
Diffstat (limited to 'generic/tkTextIndex.c')
-rw-r--r--generic/tkTextIndex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkTextIndex.c b/generic/tkTextIndex.c
index 6a60faf..b886975 100644
--- a/generic/tkTextIndex.c
+++ b/generic/tkTextIndex.c
@@ -1695,7 +1695,7 @@ IndexCountBytesOrdered(
byteCount += segPtr->size;
}
- linePtr = indexPtr1->linePtr->nextPtr;
+ linePtr = TkBTreeNextLine(textPtr, indexPtr1->linePtr);
while (linePtr != indexPtr2->linePtr) {
for (segPtr = linePtr->segPtr; segPtr != NULL;
segPtr = segPtr->nextPtr) {