Cases for vertical_center were swapped

This commit is contained in:
qwence 2018-01-02 12:36:17 -05:00 committed by Sebastian Ramacher
parent 1d67949b32
commit 51f4bba5f5

View File

@ -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 */