Commit 51f4bba5 authored by qwence's avatar qwence Committed by Sebastian Ramacher

Cases for vertical_center were swapped

parent 1d67949b
......@@ -1387,11 +1387,11 @@ position_set(zathura_t* zathura, double position_x, double position_y)
/* xalign = 0.5: center horizontally (with the page, not the document) */
if (vertical_center == true) {
/* yalign = 0.0: align page an viewport edges at the top */
page_number_to_position(zathura->document, page_id, 0.5, 0.0, &comppos_x, &comppos_y);
} else {
/* yalign = 0.5: center vertically */
page_number_to_position(zathura->document, page_id, 0.5, 0.5, &comppos_x, &comppos_y);
} else {
/* yalign = 0.0: align page an viewport edges at the top */
page_number_to_position(zathura->document, page_id, 0.5, 0.0, &comppos_x, &comppos_y);
}
/* automatic horizontal adjustment */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment