Add parenthesis to silent a possible warning.
authorLaurent Monin <zas@norz.org>
Thu, 30 Aug 2012 12:17:20 +0000 (14:17 +0200)
committerLaurent Monin <zas@norz.org>
Thu, 30 Aug 2012 12:17:20 +0000 (14:17 +0200)
suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]

src/layout_util.c

index 605df21..9823b7d 100644 (file)
@@ -125,7 +125,7 @@ gboolean layout_key_press_cb(GtkWidget *widget, GdkEventKey *event, gpointer dat
 
        focused = gtk_container_get_focus_child(GTK_CONTAINER(lw->image->widget));
        if (lw->image &&
-           (focused && gtk_widget_has_focus(focused) || (lw->tools && widget == lw->window) || lw->full_screen) )
+           ((focused && gtk_widget_has_focus(focused)) || (lw->tools && widget == lw->window) || lw->full_screen) )
                {
                stop_signal = TRUE;
                switch (event->keyval)