Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
64e9f540
Commit
64e9f540
authored
Mar 28, 2012
by
Moritz Lipp
Browse files
Fix set_rotation
parent
97b7fb41
Changes
1
Hide whitespace changes
Inline
Side-by-side
document.c
View file @
64e9f540
...
...
@@ -390,11 +390,11 @@ zathura_document_set_rotation(zathura_document_t* document, unsigned int rotatio
document
->
rotate
=
rotation
%
360
;
if
(
document
->
rotate
>
0
&&
document
->
rotate
<
90
)
{
if
(
document
->
rotate
>
0
&&
document
->
rotate
<
=
90
)
{
document
->
rotate
=
90
;
}
else
if
(
document
->
rotate
>
0
&&
document
->
rotate
<
180
)
{
}
else
if
(
document
->
rotate
>
0
&&
document
->
rotate
<
=
180
)
{
document
->
rotate
=
180
;
}
else
if
(
document
->
rotate
>
0
&&
document
->
rotate
<
270
)
{
}
else
if
(
document
->
rotate
>
0
&&
document
->
rotate
<
=
270
)
{
document
->
rotate
=
270
;
}
else
{
document
->
rotate
=
0
;
...
...
Write
Preview
Supports
Markdown
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