[eog] Don't try to autorotate before the metadata was loaded
- From: Felix Riemann <friemann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [eog] Don't try to autorotate before the metadata was loaded
- Date: Tue, 25 Aug 2009 18:04:11 +0000 (UTC)
commit 881fa5a4ad4f9ecd7a6d0f5415f063086813a614
Author: Felix Riemann <friemann gnome org>
Date: Tue Aug 25 20:00:21 2009 +0200
Don't try to autorotate before the metadata was loaded
Autorotation would fail in that case. As it is only performed once for
each image a simple image dimension query could prevent autorotation
entirely for an image. Fixes bgo#592945.
Closes: http://bugzilla.gnome.org/show_bug.cgi?id=592945
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 6c56123..cb60f76 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -1165,7 +1165,10 @@ eog_image_load (EogImage *img, EogImageData data2read, EogJob *job, GError **err
success = eog_image_real_load (img, data2read, job, error);
#ifdef HAVE_EXIF
- if (priv->autorotate) {
+ /* Check that the metadata was loaded at least once before
+ * trying to autorotate. */
+ if (priv->autorotate &&
+ priv->metadata_status == EOG_IMAGE_METADATA_READY) {
eog_image_real_autorotate (img);
}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]