Update current page when following links.

This commit is contained in:
Abdó Roig-Maranges 2012-08-16 18:41:31 +02:00 committed by Moritz Lipp
parent 0ad59d39d7
commit 16dd45ffe6

View file

@ -135,6 +135,8 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link)
return; return;
} }
zathura_document_set_current_page_number(zathura->document, link->target.page_number);
/* get page offset */ /* get page offset */
page_offset_t offset; page_offset_t offset;
page_calculate_offset(zathura, page, &offset); page_calculate_offset(zathura, page, &offset);
@ -148,6 +150,8 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link)
} }
position_set_delayed(zathura, offset.x, offset.y); position_set_delayed(zathura, offset.x, offset.y);
statusbar_page_number_update(zathura);
} }
break; break;
default: default: