diff options
author | Lionel AINS <lains@caramail.com> | 2018-11-17 08:51:37 +0100 |
---|---|---|
committer | Lionel AINS <lains@caramail.com> | 2018-11-17 08:51:37 +0100 |
commit | c255e9cc6c5fdfe5928213c4f642595fac111f4f (patch) | |
tree | f74d99ef7fa23437a7e3da84f6e710d1dc964ac1 /navit/gui | |
parent | 081fa131e879806d30627c242bd4dbf5b558caf6 (diff) | |
download | navit-c255e9cc6c5fdfe5928213c4f642595fac111f4f.tar.gz |
Fixing indentation
Diffstat (limited to 'navit/gui')
-rw-r--r-- | navit/gui/internal/gui_internal_menu.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/navit/gui/internal/gui_internal_menu.c b/navit/gui/internal/gui_internal_menu.c index 4e8b434fe..292749954 100644 --- a/navit/gui/internal/gui_internal_menu.c +++ b/navit/gui/internal/gui_internal_menu.c @@ -116,16 +116,16 @@ static void gui_internal_prune_menu_do(struct gui_priv *this, struct widget *w, wr=w->menu_data->redisplay_widget; gui_internal_menu_destroy(this, w); redisplay(this, wr, wr->data); - } - else { - if (gui_internal_menu_needs_resizing(this, w, this->root.w, this->root.h)) /* Make sure the new menu we are going to display spawns the whole display (in case there was a resize while a submenu was being displayed) */ - if (!gui_internal_widget_reload_href(this, - w)) { /* If the foremost widget is a HTML menu, reload & redraw it from its href */ - /* If not, resize the foremost widget */ - dbg(lvl_error, "Current GUI displayed is not a menu"); - dbg(lvl_error, "Will call resize with w=%d, h=%d", this->root.w, this->root.h) - gui_internal_menu_resize(this, this->root.w, this->root.h); - gui_internal_menu_render(this); + } else { + /* Make sure the new menu we are going to display spawns the whole display (in case there was a resize while a submenu was being displayed) */ + if (gui_internal_menu_needs_resizing(this, w, this->root.w, this->root.h)) { + if (!gui_internal_widget_reload_href(this,w)) { /* If the foremost widget is a HTML menu, reload & redraw it from its href */ + /* If not, resize the foremost widget */ + dbg(lvl_error, "Current GUI displayed is not a menu"); + dbg(lvl_error, "Will call resize with w=%d, h=%d", this->root.w, this->root.h) + gui_internal_menu_resize(this, this->root.w, this->root.h); + gui_internal_menu_render(this); + } } } return; |