Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
49aa4195
Commit
49aa4195
authored
Feb 23, 2017
by
Sebastian Ramacher
Browse files
CS
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
3d496848
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura/zathura.c
View file @
49aa4195
...
...
@@ -1380,13 +1380,13 @@ position_set(zathura_t* zathura, double position_x, double position_y)
}
double
comppos_x
,
comppos_y
;
unsigned
int
page_id
=
zathura_document_get_current_page_number
(
zathura
->
document
);
const
unsigned
int
page_id
=
zathura_document_get_current_page_number
(
zathura
->
document
);
bool
vertical_center
=
false
;
girara_setting_get
(
zathura
->
ui
.
session
,
"vertical-center"
,
&
vertical_center
);
/* xalign = 0.5: center horizontally (with the page, not the document) */
if
(
vertical_center
)
{
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
{
...
...
@@ -1406,7 +1406,7 @@ position_set(zathura_t* zathura, double position_x, double position_y)
/* center horizontally */
if
(
adjust_mode
==
ZATHURA_ADJUST_BESTFIT
||
adjust_mode
==
ZATHURA_ADJUST_WIDTH
||
zoom_center
)
{
zoom_center
==
true
)
{
position_x
=
0
.
5
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment