summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogel@noemail.net>2015-12-26 21:19:12 (GMT)
committerfvogel <fvogel@noemail.net>2015-12-26 21:19:12 (GMT)
commit487b6dcb3034f8aafc6c03603b0a9d7bb189e79a (patch)
treedabc381f3aef4f0c1e9acaf0a58e0d463d98f7ff /generic
parentd37ceff72a3339a7c30bdd753d63f098c01b9ab7 (diff)
parent88a2ec52c0403f619ded36af5e0fa7ecb7e0d356 (diff)
downloadtk-487b6dcb3034f8aafc6c03603b0a9d7bb189e79a.zip
tk-487b6dcb3034f8aafc6c03603b0a9d7bb189e79a.tar.gz
tk-487b6dcb3034f8aafc6c03603b0a9d7bb189e79a.tar.bz2
Fixed bug [2f78c7c5ea] - text widget segfault with tablelist
FossilOrigin-Name: f91950572e47340d12cb780fe052aabfc41c6e7a
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index eb479b2..a57c24b 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -4805,9 +4805,16 @@ TextRedrawTag(
/*
* Round up the starting position if it's before the first line visible on
- * the screen (we only care about what's on the screen).
+ * the screen (we only care about what's on the screen). Beware that the
+ * display info structure might need update, for instance if we arrived
+ * here from an 'after idle' script removing tags in a range whose
+ * display lines (and dInfo) were partially invalidated by a previous
+ * delete operation in the text widget.
*/
+ if (dInfoPtr->flags & DINFO_OUT_OF_DATE) {
+ UpdateDisplayInfo(textPtr);
+ }
dlPtr = dInfoPtr->dLinePtr;
if (dlPtr == NULL) {
return;