[eog] Fix check if only the image dimensions need to be loaded
- From: Felix Riemann <friemann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [eog] Fix check if only the image dimensions need to be loaded
- Date: Tue, 25 Aug 2009 18:04:06 +0000 (UTC)
commit 3c501d254c968bcd955194a6881c7b5bb8868c34
Author: Felix Riemann <friemann gnome org>
Date: Tue Aug 25 19:56:17 2009 +0200
Fix check if only the image dimensions need to be loaded
The check was assuming that if there's more requested than only image
dimensions. This breaks with the image collection tooltips which don't
request image data but Exif data in addition to the dimensions.
src/eog-image.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-image.c b/src/eog-image.c
index 04caec2..6c56123 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -845,7 +845,8 @@ eog_image_real_load (EogImage *img,
gboolean set_metadata = TRUE;
gboolean read_image_data = (data2read & EOG_IMAGE_DATA_IMAGE);
gboolean read_only_dimension = (data2read & EOG_IMAGE_DATA_DIMENSION) &&
- !read_image_data;
+ ((data2read ^ EOG_IMAGE_DATA_DIMENSION) == 0);
+
priv = img->priv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]