summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2015-07-10 21:59:14 (GMT)
committerfvogelnew1@free.fr <fvogel>2015-07-10 21:59:14 (GMT)
commit164359a4b5b1f07be90729e2a4ebe2f21d5dc2b7 (patch)
treee86e29066b9cbe6352c96735dbad9d2da7dbf82e
parent9b3015adad89ada0c26a09882ae2eddc4405263f (diff)
downloadtk-164359a4b5b1f07be90729e2a4ebe2f21d5dc2b7.zip
tk-164359a4b5b1f07be90729e2a4ebe2f21d5dc2b7.tar.gz
tk-164359a4b5b1f07be90729e2a4ebe2f21d5dc2b7.tar.bz2
Fixed bug [3f1f79abcf] - Text widget crash when seeing or bboxing (or selecting, moving the cursor...) in elided text
-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) {