[gimp/blend-tool-fun: 71/163] app: cosmetic cleanup in gimp_image_parasite_attach()
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/blend-tool-fun: 71/163] app: cosmetic cleanup in gimp_image_parasite_attach()
- Date: Mon, 26 Oct 2015 02:24:11 +0000 (UTC)
commit 647954e96dfc39aa27c919e16b7ae4e52d47fcea
Author: Michael Natterer <mitch gimp org>
Date: Thu Sep 24 21:33:30 2015 +0200
app: cosmetic cleanup in gimp_image_parasite_attach()
app/core/gimpimage.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index c8542c8..087c939 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -3323,14 +3323,17 @@ gimp_image_parasite_attach (GimpImage *image,
{
GimpImagePrivate *private;
GimpParasite copy;
+ const gchar *name;
g_return_if_fail (GIMP_IS_IMAGE (image));
g_return_if_fail (parasite != NULL);
private = GIMP_IMAGE_GET_PRIVATE (image);
+ name = gimp_parasite_name (parasite);
+
/* this is so ugly and is only for the PDB */
- if (strcmp (gimp_parasite_name (parasite), GIMP_ICC_PROFILE_PARASITE_NAME) == 0)
+ if (strcmp (name, GIMP_ICC_PROFILE_PARASITE_NAME) == 0)
{
GimpColorProfile *profile;
GimpColorProfile *builtin;
@@ -3375,9 +3378,9 @@ gimp_image_parasite_attach (GimpImage *image,
}
g_signal_emit (image, gimp_image_signals[PARASITE_ATTACHED], 0,
- gimp_parasite_name (parasite));
+ name);
- if (strcmp (gimp_parasite_name (parasite), GIMP_ICC_PROFILE_PARASITE_NAME) == 0)
+ if (strcmp (name, GIMP_ICC_PROFILE_PARASITE_NAME) == 0)
_gimp_image_update_color_profile (image, parasite);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]