aboutsummaryrefslogtreecommitdiff
path: root/src/crystfelimageview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crystfelimageview.c')
-rw-r--r--src/crystfelimageview.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c
index d5c0b51f..6d6cbd60 100644
--- a/src/crystfelimageview.c
+++ b/src/crystfelimageview.c
@@ -133,6 +133,8 @@ static gint scroll_sig(GtkWidget *window, GdkEventScroll *event,
int claim = FALSE;
int zoom_allowed = 1;
+ if ( iv->image == NULL ) return FALSE;
+
if ( event->direction == GDK_SCROLL_UP ) {
zoom_scale = 1.1;
claim = TRUE;