aboutsummaryrefslogtreecommitdiff
path: root/src/imageview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/imageview.c')
-rw-r--r--src/imageview.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/imageview.c b/src/imageview.c
index 312794f7..77f33006 100644
--- a/src/imageview.c
+++ b/src/imageview.c
@@ -246,6 +246,8 @@ static void size_allocate_cb(GtkWidget *widget,GtkAllocation *allocation,
}
if (!imageview->scrolledwin->parent)
return;
+ if (!imageview->image_data)
+ return;
imageview_show_image(imageview, NULL, NULL, TRUE);
imageview->resizing = TRUE;
}