summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/eom-image.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eom-image.c b/src/eom-image.c
index 724d849..1b38978 100644
--- a/src/eom-image.c
+++ b/src/eom-image.c
@@ -1253,9 +1253,11 @@ eom_image_load (EomImage *img, EomImageData data2read, EomJob *job, GError **err
#ifdef HAVE_EXIF
/* Check that the metadata was loaded at least once before
- * trying to autorotate. */
+ * trying to autorotate. Also only an imatge load job should try to
+ * autorotate and image */
if (priv->autorotate &&
- priv->metadata_status == EOM_IMAGE_METADATA_READY) {
+ priv->metadata_status == EOM_IMAGE_METADATA_READY &&
+ data2read & EOM_IMAGE_DATA_IMAGE) {
eom_image_real_autorotate (img);
}
#endif