From 60523c5506df886b83d0f5799bb65cc61dc78975 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Wed, 8 Feb 2012 23:37:34 +0100 Subject: [PATCH] Fix current page number check --- document.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/document.c b/document.c index ee638b8..9b04517 100644 --- a/document.c +++ b/document.c @@ -304,9 +304,9 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password } /* check current page number */ - if (document->current_page_number < 1 || document->current_page_number > document->number_of_pages) { + if (document->current_page_number > document->number_of_pages) { girara_warning("document info: '%s' has an invalid page number", document->file_path); - document->current_page_number = 1; + document->current_page_number = 0; } /* update statusbar */