diff options
-rw-r--r-- | mate-panel/button-widget.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mate-panel/button-widget.c b/mate-panel/button-widget.c index 02f69fb0..c521c1af 100644 --- a/mate-panel/button-widget.c +++ b/mate-panel/button-widget.c @@ -177,8 +177,8 @@ button_widget_reload_surface (ButtonWidget *button) panel_load_icon (button->priv->icon_theme, button->priv->filename, button->priv->size * scale, - button->priv->orientation & PANEL_VERTICAL_MASK ? button->priv->size * scale : -1, - button->priv->orientation & PANEL_HORIZONTAL_MASK ? button->priv->size * scale: -1, + (button->priv->orientation & PANEL_VERTICAL_MASK) ? button->priv->size * scale : -1, + (button->priv->orientation & PANEL_HORIZONTAL_MASK) ? button->priv->size * scale: -1, &error); if (error) { //FIXME: this is not rendered at button->priv->size @@ -312,7 +312,7 @@ calc_arrow (PanelOrientation orientation, button_height = 50; } - *size = (orientation & PANEL_HORIZONTAL_MASK ? button_width : button_height) / 2; + *size = ((orientation & PANEL_HORIZONTAL_MASK) ? button_width : button_height) / 2; *angle = 0; switch (orientation) { |