diff options
author | dgp <dgp@users.sourceforge.net> | 2016-02-04 17:49:39 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-02-04 17:49:39 (GMT) |
commit | 6dddb4fc012c00ae1c5465fcf5225fa618a6994c (patch) | |
tree | bec042d2bd2169350f6624e9622ca3a8644067a3 /generic | |
parent | 098b03f8f4259f1767486350c21f5b7e11a6e06b (diff) | |
download | tk-6dddb4fc012c00ae1c5465fcf5225fa618a6994c.zip tk-6dddb4fc012c00ae1c5465fcf5225fa618a6994c.tar.gz tk-6dddb4fc012c00ae1c5465fcf5225fa618a6994c.tar.bz2 |
[06c1433906] Possible fix for text widget crashes.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkTextDisp.c | 5 |
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. */ |