Commit 64e9f540 authored by Moritz Lipp's avatar Moritz Lipp
Browse files

Fix set_rotation

parent 97b7fb41
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment