diff options
author | dgp <dgp@users.sourceforge.net> | 2016-02-05 19:30:32 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-02-05 19:30:32 (GMT) |
commit | 4b766d1f24378289437bc45e7405f68a48053915 (patch) | |
tree | c81cfb008616a39a184d97d9415d38a65c819403 /generic/tkTextDisp.c | |
parent | b5e22a7b7e4fd964d34f9d16aa7802fe7322636c (diff) | |
download | tk-4b766d1f24378289437bc45e7405f68a48053915.zip tk-4b766d1f24378289437bc45e7405f68a48053915.tar.gz tk-4b766d1f24378289437bc45e7405f68a48053915.tar.bz2 |
Fix crashing test case, textDisp-8.13
Diffstat (limited to 'generic/tkTextDisp.c')
-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 18b373f..f2e760b 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -4765,6 +4765,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. */ |