From 33513e65eae324f51875d11e88154c9c294cf3b8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 30 May 2014 23:18:29 +0100 Subject: Fix toolbar width calculation. + has greater precedence than ?:, so wrap :? part in (). --- riscos/toolbar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'riscos') diff --git a/riscos/toolbar.c b/riscos/toolbar.c index 3a6c0d67b..5bbde8a38 100644 --- a/riscos/toolbar.c +++ b/riscos/toolbar.c @@ -847,8 +847,8 @@ void ro_toolbar_refresh_widget_dimensions(struct toolbar *toolbar) toolbar->full_height = 0; } toolbar->full_width = 2 * TOOLBAR_WIDGET_GUTTER + - (row_width > toolbar->editor_size.x) ? - row_width : toolbar->editor_size.x; + ((row_width > toolbar->editor_size.x) ? + row_width : toolbar->editor_size.x); } -- cgit v1.2.3