Skip to content

Commit

Permalink
Fix preview rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelaya committed Jun 1, 2014
1 parent 05d366e commit 4869e60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PreviewWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ void PreviewWidget::rotate(int & x, int & y) const {
int tmp;
switch (flip) {
case 3:
x = width - x;
y = height - y;
x = width - 1 - x;
y = height - 1 - y;
break;
case 5:
tmp = x;
x = height - y;
x = height - 1 - y;
y = tmp;
break;
case 6:
tmp = x;
x = y;
y = width - tmp;
y = width - 1 - tmp;
break;
}
}
Expand Down

0 comments on commit 4869e60

Please sign in to comment.