Be consistent with earlier versions

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2013-11-22 06:24:38 +01:00
parent 4c88e9d1ef
commit 086d49bb1a

View file

@ -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;