From: Colin Clark Date: Tue, 19 Sep 2017 08:51:20 +0000 (+0100) Subject: Bug fix: Segfault in pan view X-Git-Tag: v1.4~80 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=79917d0d883e50e77960f016a1f9816137c4c0de Bug fix: Segfault in pan view If an image is double-clicked in pan view, Geeqie crashes --- diff --git a/src/image.c b/src/image.c index de441010..52591a8e 100644 --- a/src/image.c +++ b/src/image.c @@ -73,7 +73,8 @@ static void image_press_cb(PixbufRenderer *pr, GdkEventButton *event, gpointer d LayoutWindow *lw; lw = layout_find_by_image(imd); - if (event->button == MOUSE_BUTTON_LEFT && event->type == GDK_2BUTTON_PRESS && !options->image_lm_click_nav) + if (lw && event->button == MOUSE_BUTTON_LEFT && event->type == GDK_2BUTTON_PRESS + && !options->image_lm_click_nav) { if (lw->full_screen) layout_image_full_screen_stop(lw);