aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--liblogdiag/ld-diagram-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/liblogdiag/ld-diagram-view.c b/liblogdiag/ld-diagram-view.c
index 1564c6b..1d2764c 100644
--- a/liblogdiag/ld-diagram-view.c
+++ b/liblogdiag/ld-diagram-view.c
@@ -2232,7 +2232,8 @@ on_button_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data)
LdDiagramView *self;
self = LD_DIAGRAM_VIEW (widget);
- if (!self->priv->diagram)
+ if (!self->priv->diagram
+ || event->type != GDK_BUTTON_PRESS)
return FALSE;
point.x = event->x;