Skip to content

Commit

Permalink
libview: Ignore right clicks while in annotation add mode.
Browse files Browse the repository at this point in the history
José Aliste committed Oct 15, 2015
1 parent fb22f9d commit d81f36e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libview/ev-view.c
Original file line number Diff line number Diff line change
@@ -5630,7 +5630,9 @@ ev_view_button_release_event (GtkWidget *widget,
if (view->adding_annot_info.adding_annot) {
gboolean annot_added = TRUE;

g_assert (view->pressed_button == 1);
/* We ignore right-click buttons while in annotation add mode */
if (view->pressed_button != 1)
return FALSE;
g_assert (view->adding_annot_info.annot);

if (EV_IS_ANNOTATION_MARKUP (view->adding_annot_info.annot)) {

0 comments on commit d81f36e

Please sign in to comment.