summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-12-23 11:29:34 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-12-23 11:29:34 (GMT)
commitdcb68b1c9c9f143fc7459480396bf38a6a89d011 (patch)
treebe22cb59be1fb6bf36fdd8bfd473a034cc5fbe6c
parent56005a00aae9d8be182d5643373980ee371417d6 (diff)
downloadtk-dcb68b1c9c9f143fc7459480396bf38a6a89d011.zip
tk-dcb68b1c9c9f143fc7459480396bf38a6a89d011.tar.gz
tk-dcb68b1c9c9f143fc7459480396bf38a6a89d011.tar.bz2
Fixed bug [2f78c7c5ea] - text segfault with tablelist in TkBTreeLinesTo
-rw-r--r--generic/tkTextDisp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index ef8d6f4..b832443 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -4803,9 +4803,15 @@ 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 after a delete operation triggering a trace running a tag removal
+ * covering the whole contents of the text widget.
*/
+ if (dInfoPtr->flags & DINFO_OUT_OF_DATE) {
+ UpdateDisplayInfo(textPtr);
+ }
dlPtr = dInfoPtr->dLinePtr;
if (dlPtr == NULL) {
return;