summaryrefslogtreecommitdiff
path: root/src/imlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/imlib.c')
-rw-r--r--src/imlib.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/imlib.c b/src/imlib.c
index 143807d..eb3f522 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -1543,9 +1543,11 @@ void feh_edit_inplace(winwidget w, int op)
imlib_image_flip_horizontal();
else {
imlib_image_orientate(op);
- tmp = w->im_w;
- w->im_w = w->im_h;
- w->im_h = tmp;
+ if(op != 2) {
+ tmp = w->im_w;
+ w->im_w = w->im_h;
+ w->im_h = tmp;
+ }
if (FEH_FILE(w->file->data)->info) {
FEH_FILE(w->file->data)->info->width = w->im_w;
FEH_FILE(w->file->data)->info->height = w->im_h;