summaryrefslogtreecommitdiffstats
path: root/generic/tkTextDisp.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-02-05 19:20:55 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-02-05 19:20:55 (GMT)
commit4d5d07456b1dbac977bab6e1b594fe20bab56709 (patch)
treef39fbde47579b1d3856fd6511261e4623b24f782 /generic/tkTextDisp.c
parent098b03f8f4259f1767486350c21f5b7e11a6e06b (diff)
parent6dddb4fc012c00ae1c5465fcf5225fa618a6994c (diff)
downloadtk-4d5d07456b1dbac977bab6e1b594fe20bab56709.zip
tk-4d5d07456b1dbac977bab6e1b594fe20bab56709.tar.gz
tk-4d5d07456b1dbac977bab6e1b594fe20bab56709.tar.bz2
Fix crashing test case, textDisp-8.13
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r--generic/tkTextDisp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 133a7d7..10f6414 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -4699,6 +4699,11 @@ TextChanged(
}
}
+ while ((lastPtr != NULL)
+ && (lastPtr->index.linePtr == index2Ptr->linePtr)) {
+ lastPtr = lastPtr->nextPtr;
+ }
+
/*
* Delete all the DLines from firstPtr up to but not including lastPtr.
*/