From e5b517a4807873dca162ab6c5b3d66437add6e62 Mon Sep 17 00:00:00 2001 From: cristy Date: Fri, 14 Feb 2014 14:19:29 +0000 Subject: [PATCH] --- MagickCore/property.c | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/MagickCore/property.c b/MagickCore/property.c index c0fdfcab1..9868e822c 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -2572,8 +2572,11 @@ static const char *GetMagickPropertyLetter(ImageInfo *image_info, page.y); break; } - case '#': /* Image signature */ + case '#': { + /* + Image signature. + */ WarnNoImageReturn("\"%%%c\"",letter); (void) SignatureImage(image,exception); string=GetImageProperty(image,"signature",exception); @@ -2583,19 +2586,21 @@ static const char *GetMagickPropertyLetter(ImageInfo *image_info, if (string != (char *) NULL) return(string); if (*value != '\0') - { - /* create a cloned copy of result, that will get cleaned up, eventually */ - if (image != (Image *)NULL) - { - (void) SetImageArtifact(image,"get-property",value); - return(GetImageArtifact(image,"get-property")); - } - else - { - (void) SetImageOption(image_info,"get-property",value); - return(GetImageOption(image_info,"get-property")); - } - } + { + /* + Create a cloned copy of result. + */ + if (image != (Image *)NULL) + { + (void) SetImageArtifact(image,"get-property",value); + return(GetImageArtifact(image,"get-property")); + } + else + { + (void) SetImageOption(image_info,"get-property",value); + return(GetImageOption(image_info,"get-property")); + } + } return((char *)NULL); } -- 2.40.0