summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2019-09-09 02:11:42 (GMT)
committerKevin Walzer <kw@codebykevin.com>2019-09-09 02:11:42 (GMT)
commit8af11f50975fd87cd3be2d0288117aa77bf910df (patch)
treec7f93ece8296cf391ac97bf0885e69236d6c28c9 /generic
parent441c047f558f8d764f5d8c87f4b6462f2852b908 (diff)
parent7b6fc28176ac813dd3b4a43bd309fa50b931cb52 (diff)
downloadtk-8af11f50975fd87cd3be2d0288117aa77bf910df.zip
tk-8af11f50975fd87cd3be2d0288117aa77bf910df.tar.gz
tk-8af11f50975fd87cd3be2d0288117aa77bf910df.tar.bz2
Merge 8.6
Diffstat (limited to 'generic')
-rw-r--r--generic/tkCanvas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c
index 92a7706..ce3dad1 100644
--- a/generic/tkCanvas.c
+++ b/generic/tkCanvas.c
@@ -2889,7 +2889,7 @@ EventuallyRedrawItem(
Tk_Item *itemPtr) /* Item to be redrawn. May be NULL, in which
* case nothing happens. */
{
- if (itemPtr == NULL) {
+ if (itemPtr == NULL || canvasPtr->tkwin == NULL) {
return;
}
if ((itemPtr->x1 >= itemPtr->x2) || (itemPtr->y1 >= itemPtr->y2) ||