mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 11:06:00 +01:00
Cases for vertical_center were swapped
This commit is contained in:
parent
1d67949b32
commit
51f4bba5f5
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue