diff options
Diffstat (limited to 'src/crystfelimageview.c')
-rw-r--r-- | src/crystfelimageview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c index 98eb2aab..a50fc93b 100644 --- a/src/crystfelimageview.c +++ b/src/crystfelimageview.c @@ -242,7 +242,7 @@ static gint draw_sig(GtkWidget *window, cairo_t *cr, CrystFELImageView *iv) cairo_translate(cr, -gtk_adjustment_get_value(iv->hadj), gtk_adjustment_get_value(iv->vadj)); - if ( iv->pixbufs != NULL ) { + if ( (iv->image != NULL) && (iv->pixbufs != NULL) ) { int i; for ( i=0; i<iv->image->detgeom->n_panels; i++ ) { cairo_save(cr); |