Reload correct page when re-opening known file

This commit is contained in:
Moritz Lipp 2012-02-20 20:13:53 +01:00
parent b6f1868e7f
commit 8219d48eba

View file

@ -463,7 +463,7 @@ document_open(zathura_t* zathura, const char* path, const char* password)
/* bookmarks */ /* bookmarks */
zathura_bookmarks_load(zathura, zathura->document->file_path); zathura_bookmarks_load(zathura, zathura->document->file_path);
page_set_delayed(zathura, document->current_page_number - 1); page_set_delayed(zathura, document->current_page_number);
cb_view_vadjustment_value_changed(NULL, zathura); cb_view_vadjustment_value_changed(NULL, zathura);
free(file_uri); free(file_uri);