need to set the page number before the position

In the case we want to automatically set the position by by passing -1
to position_set, we better tell it the page before.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Abdo Roig-Maranges 2013-10-30 12:46:10 +01:00 committed by Sebastian Ramacher
parent f10d847a95
commit 9f201f4a1f

View File

@ -184,6 +184,7 @@ zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link)
/* move to position */ /* move to position */
zathura_jumplist_add(zathura); zathura_jumplist_add(zathura);
zathura_document_set_current_page_number(zathura->document, link->target.page_number);
position_set(zathura, pos_x, pos_y); position_set(zathura, pos_x, pos_y);
zathura_jumplist_add(zathura); zathura_jumplist_add(zathura);
} }