Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2013-12-17 16:27:34 +01:00
parent 87af53afbb
commit 660a3e7757

View File

@ -799,9 +799,9 @@ document_open(zathura_t* zathura, const char* path, const char* password,
page_set(zathura, zathura_document_get_current_page_number(document)); page_set(zathura, zathura_document_get_current_page_number(document));
/* Set position (only if restoring from history file) */ /* Set position (only if restoring from history file) */
if (file_info.current_page == zathura_document_get_current_page_number(document) if (file_info.current_page == zathura_document_get_current_page_number(document) &&
&& (file_info.position_x != 0 || file_info.position_y != 0)) { (file_info.position_x != 0 || file_info.position_y != 0)) {
position_set(zathura, file_info.position_x, file_info.position_y); position_set(zathura, file_info.position_x, file_info.position_y);
} }
return true; return true;