[eog] EogImage: Make sure to emit size-prepared after applying orientation



commit abe8912634fc05e3b6d09bdd9a98be3bf586357b
Author: Felix Riemann <friemann gnome org>
Date:   Sun May 17 17:28:50 2015 +0200

    EogImage: 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

 src/eog-image.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-image.c b/src/eog-image.c
index 01d5c71..028d93f 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -1200,7 +1200,10 @@ eog_image_real_load (EogImage *img,
 
                        /* Set orientation again for safety, eg. if we don't
                         * have Exif data or HAVE_EXIF is undefined. */
-                       eog_image_set_orientation (img);
+                       if (priv->autorotate) {
+                               eog_image_set_orientation (img);
+                               eog_image_emit_size_prepared (img);
+                       }
                } else {
                        /* Some loaders don't report errors correctly.
                         * Error will be set below. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]