summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Riemann <[email protected]>2015-05-17 17:28:50 +0200
committerraveit65 <[email protected]>2018-07-23 23:08:53 +0200
commit4115f76df9da09cecdf44f0be95b6f8ea3793060 (patch)
tree7595136f26f24e16d1789c9308f8d335919cddcc
parentc3d8c61d2be752f91c7007a5b149052b2bfb7237 (diff)
downloadeom-4115f76df9da09cecdf44f0be95b6f8ea3793060.tar.bz2
eom-4115f76df9da09cecdf44f0be95b6f8ea3793060.tar.xz
EomImage: Make sure to emit size-prepared after applying orientation
Even if the orientation didn't occur by Exif data. https://bugzilla.gnome.org/show_bug.cgi?id=748598 origin commit: https://gitlab.gnome.org/GNOME/eog/commit/abe8912
-rw-r--r--src/eom-image.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/eom-image.c b/src/eom-image.c
index d4aa95a..9011138 100644
--- a/src/eom-image.c
+++ b/src/eom-image.c
@@ -1150,7 +1150,10 @@ eom_image_real_load (EomImage *img,
/* Set orientation again for safety, eg. if we don't
* have Exif data or HAVE_EXIF is undefined. */
- eom_image_set_orientation (img);
+ if (priv->autorotate) {
+ eom_image_set_orientation (img);
+ eom_image_emit_size_prepared (img);
+ }
} else {
/* Some loaders don't report errors correctly.