Forced update listing format after swap

...because of possible changed sizes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2011-01-08 14:42:15 +03:00
parent 2a98492e77
commit 2c994461a6

View File

@ -1190,6 +1190,12 @@ swap_panels (void)
tmp_type = panels[0].type;
panels[0].type = panels[1].type;
panels[1].type = tmp_type;
/* force update formats because of possible changed sizes */
if (panels[0].type == view_listing)
set_panel_formats ((WPanel *) panels[0].widget);
if (panels[1].type == view_listing)
set_panel_formats ((WPanel *) panels[1].widget);
}
}