Fix page switching after closing the first page in RTL non-MRU mode (oops)

This commit is contained in:
Colomban Wendling 2011-12-26 16:56:36 +01:00
parent d79268b346
commit fa70c16023

View File

@ -736,7 +736,10 @@ void notebook_remove_page(gint page_num)
if (page_num == page)
{
page += (file_prefs.tab_order_ltr) ? 1 : -1;
if (file_prefs.tab_order_ltr)
page += 1;
else if (page > 0) /* never go negative, it would select the last page */
page -= 1;
if (file_prefs.tab_close_switch_to_mru)
{