summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-02-04 17:49:39 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-02-04 17:49:39 (GMT)
commit6dddb4fc012c00ae1c5465fcf5225fa618a6994c (patch)
treebec042d2bd2169350f6624e9622ca3a8644067a3
parent098b03f8f4259f1767486350c21f5b7e11a6e06b (diff)
downloadtk-6dddb4fc012c00ae1c5465fcf5225fa618a6994c.zip
tk-6dddb4fc012c00ae1c5465fcf5225fa618a6994c.tar.gz
tk-6dddb4fc012c00ae1c5465fcf5225fa618a6994c.tar.bz2
[06c1433906] Possible fix for text widget crashes.
-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.
*/