menu: Fix condition check

A logical "and" became a binary "and" in commit c35878ec.
This commit is contained in:
Emmanuele Bassi 2019-02-05 15:18:41 +01:00
parent f533ef8650
commit d9d3ec7cad

View File

@ -5392,7 +5392,7 @@ gtk_menu_scroll_to (GtkMenu *menu,
if (!priv->upper_arrow_visible || !priv->lower_arrow_visible)
gtk_widget_queue_draw (GTK_WIDGET (menu));
if (!priv->upper_arrow_visible &
if (!priv->upper_arrow_visible &&
flags & GTK_MENU_SCROLL_FLAG_ADAPT)
should_offset_by_arrow = TRUE;
else