summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
diff options
context:
space:
mode:
authorfvogel <fvogel@noemail.net>2015-07-10 21:59:14 (GMT)
committerfvogel <fvogel@noemail.net>2015-07-10 21:59:14 (GMT)
commit1f74ace35bfc0257044979d9d719adc4335364d5 (patch)
treeea1eaa5fd38eca927c9576e98e77fe3bd08e1aa9 /generic/tkTextIndex.c
parent5104b50b9beb2a663c3136dc6d96a8ee708febb1 (diff)
downloadtk-1f74ace35bfc0257044979d9d719adc4335364d5.zip
tk-1f74ace35bfc0257044979d9d719adc4335364d5.tar.gz
tk-1f74ace35bfc0257044979d9d719adc4335364d5.tar.bz2
Fixed bug [3f1f79abcf] - Text widget crash when seeing or bboxing (or selecting, moving the cursor...) in elided text
FossilOrigin-Name: 716fe4a4132566e6600a7edbbd5315ffab7b020b
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) {