projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
776d9f6
)
Bug fix: Segfault in pan view
author
Colin Clark
<colin.clark@cclark.uk>
Tue, 19 Sep 2017 08:51:20 +0000
(09:51 +0100)
committer
Colin Clark
<colin.clark@cclark.uk>
Tue, 19 Sep 2017 08:51:20 +0000
(09:51 +0100)
If an image is double-clicked in pan view, Geeqie crashes
src/image.c
patch
|
blob
|
history
diff --git
a/src/image.c
b/src/image.c
index
de44101
..
52591a8
100644
(file)
--- 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);