]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 20 Jul 2014 11:46:59 +0000 (11:46 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 20 Jul 2014 11:46:59 +0000 (11:46 +0000)
MagickWand/magick-property.c

index 08be0230d286186f1333f8347c305189f1f5f8b8..3d255dc7cfa636fc1d111d74d452badb979275dc 100644 (file)
@@ -2072,11 +2072,12 @@ WandExport MagickBooleanType MagickSetExtract(MagickWand *wand,
 {
   assert(wand != (MagickWand *) NULL);
   assert(wand->signature == WandSignature);
-  if( IfMagickTrue(wand->debug) )
+  if (wand->debug != MagickFalse)
     (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
-
+  if (wand->image_info->extract != (char *) NULL)
+    wand->image_info->extract=DestroyString(wand->image_info->extract);
   if (geometry != (const char *) NULL)
-    (void) CopyMagickString(wand->image_info->extract,geometry,MaxTextExtent);
+    (void) CloneString(&wand->image_info->extract,geometry);
   return(MagickTrue);
 }
 \f