summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 21c0aa23..410b793e 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -3969,6 +3969,11 @@ static iBool render_DocumentWidget_(const iDocumentWidget *d, iDrawContext *ctx,
3969} 3969}
3970 3970
3971static void prerender_DocumentWidget_(iAny *context) { 3971static void prerender_DocumentWidget_(iAny *context) {
3972 if (current_Root() == NULL) {
3973 /* The widget has probably been removed from the widget tree, pending destruction.
3974 Tickers are not cancelled until the widget is actually destroyed. */
3975 return;
3976 }
3972 const iDocumentWidget *d = context; 3977 const iDocumentWidget *d = context;
3973 iDrawContext ctx = { 3978 iDrawContext ctx = {
3974 .widget = d, 3979 .widget = d,