From 086d49bb1ac5537b45d395fa7a028eb64579382b Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 22 Nov 2013 06:24:38 +0100 Subject: [PATCH] Be consistent with earlier versions Signed-off-by: Sebastian Ramacher --- document.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document.c b/document.c index 722510d..ffb0950 100644 --- a/document.c +++ b/document.c @@ -534,7 +534,7 @@ zathura_document_set_page_layout(zathura_document_t* document, unsigned int page if (first_page_column < 1) { first_page_column = 1; } else if (first_page_column > pages_per_row) { - first_page_column = pages_per_row; + first_page_column = ((first_page_column - 1) % pages_per_row) + 1; } document->first_page_column = first_page_column;