summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2015-12-23 11:29:34 (GMT)
committerfvogelnew1@free.fr <fvogel>2015-12-23 11:29:34 (GMT)
commit8d890d3e5df7323f46b7e2133097b09ceac59886 (patch)
treebe22cb59be1fb6bf36fdd8bfd473a034cc5fbe6c /generic
parent3a7f637a89e5de6b30b0417ea1d72224a190a9da (diff)
downloadtk-8d890d3e5df7323f46b7e2133097b09ceac59886.zip
tk-8d890d3e5df7323f46b7e2133097b09ceac59886.tar.gz
tk-8d890d3e5df7323f46b7e2133097b09ceac59886.tar.bz2
Fixed bug [2f78c7c5ea] - text segfault with tablelist in TkBTreeLinesTo
Diffstat (limited to 'generic')
-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;