[gimp] libgimp: always return a pixbuf from gimp_image_metadata_rotate_pixbuf()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: always return a pixbuf from gimp_image_metadata_rotate_pixbuf()
- Date: Thu, 5 Jun 2014 18:41:23 +0000 (UTC)
commit 7f5d360329e6c3c16c06a28b8613b21dee215212
Author: Michael Natterer <mitch gimp org>
Date: Thu Jun 5 20:38:38 2014 +0200
libgimp: always return a pixbuf from gimp_image_metadata_rotate_pixbuf()
For "no rotation" return a reference of the original, instead of NULL.
libgimp/gimpmetadata.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgimp/gimpmetadata.c b/libgimp/gimpmetadata.c
index bea9e6d..b3dd0ea 100644
--- a/libgimp/gimpmetadata.c
+++ b/libgimp/gimpmetadata.c
@@ -644,6 +644,7 @@ gimp_image_metadata_rotate_pixbuf (GdkPixbuf *pixbuf,
{
case GEXIV2_ORIENTATION_UNSPECIFIED:
case GEXIV2_ORIENTATION_NORMAL: /* standard orientation, do nothing */
+ rotated = g_object_ref (pixbuf);
break;
case GEXIV2_ORIENTATION_HFLIP:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]