[gimp] GIMP_METADATA_SAVE_* are bit fields so use | to test for bits in 'flags'.
- From: Kevin Cozens <kcozens src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] GIMP_METADATA_SAVE_* are bit fields so use | to test for bits in 'flags'.
- Date: Wed, 30 Apr 2014 17:47:53 +0000 (UTC)
commit 258806ea3862cd66cb0300e25a3e6eb24a375d49
Author: Kevin Cozens <kevin ve3syb ca>
Date: Wed Apr 30 13:46:13 2014 -0400
GIMP_METADATA_SAVE_* are bit fields so use | to test for bits in 'flags'.
libgimp/gimpmetadata.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgimp/gimpmetadata.c b/libgimp/gimpmetadata.c
index 763ff27..2ed07a2 100644
--- a/libgimp/gimpmetadata.c
+++ b/libgimp/gimpmetadata.c
@@ -353,9 +353,9 @@ gimp_image_metadata_save_finish (gint32 image_ID,
g_return_val_if_fail (G_IS_FILE (file), FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
- if (! (flags & (GIMP_METADATA_SAVE_EXIF ||
- GIMP_METADATA_SAVE_XMP ||
- GIMP_METADATA_SAVE_IPTC ||
+ if (! (flags & (GIMP_METADATA_SAVE_EXIF |
+ GIMP_METADATA_SAVE_XMP |
+ GIMP_METADATA_SAVE_IPTC |
GIMP_METADATA_SAVE_THUMBNAIL)))
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]