mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 23:33:57 +01:00
Cases for vertical_center were swapped
This commit is contained in:
parent
1d67949b32
commit
51f4bba5f5
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user