Ignore double/triple clicks in LdDiagramView.

Fixes fast rotating.
This commit is contained in:
Přemysl Eric Janouch 2012-10-08 00:11:34 +02:00
parent 6c925b7092
commit 6a24ede141

View File

@ -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;