X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=MagickCore%2Fmontage.c;h=1ec7f28b29a478d0de5349eca73d58f07610321a;hb=45ef08fd6a09813e4a8f5ddadf85ba9e0ec2cdc7;hp=900e300bf0144f11c44becb83f4e2a605178494f;hpb=39172408bad7ef2ef00a815fa9abf9979e7857cb;p=imagemagick diff --git a/MagickCore/montage.c b/MagickCore/montage.c index 900e300bf..1ec7f28b2 100644 --- a/MagickCore/montage.c +++ b/MagickCore/montage.c @@ -17,7 +17,7 @@ % July 1992 % % % % % -% Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization % +% Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization % % dedicated to making software imaging solutions freely available. % % % % You may not use this file except in compliance with the License. You may % @@ -496,9 +496,8 @@ MagickExport Image *MontageImageList(const ImageInfo *image_info, */ flags=GetGeometry(montage_info->geometry,&extract_info.x,&extract_info.y, &extract_info.width,&extract_info.height); - if ((extract_info.x == 0) && (extract_info.y == 0)) - concatenate=((flags & RhoValue) == 0) && ((flags & SigmaValue) == 0) ? - MagickTrue : MagickFalse; + concatenate=((flags & RhoValue) == 0) && ((flags & SigmaValue) == 0) ? + MagickTrue : MagickFalse; } border_width=montage_info->border_width; bevel_width=0; @@ -760,9 +759,9 @@ MagickExport Image *MontageImageList(const ImageInfo *image_info, if ((montage_info->frame != (char *) NULL) && (image->compose == DstOutCompositeOp)) { - SetPixelChannelMapMask(image,AlphaChannel); + SetPixelChannelMask(image,AlphaChannel); (void) NegateImage(image,MagickFalse,exception); - SetPixelChannelMapMask(image,DefaultChannels); + SetPixelChannelMask(image,DefaultChannels); } } /* @@ -794,8 +793,8 @@ MagickExport Image *MontageImageList(const ImageInfo *image_info, extract_info.height=height+2*frame_info.height; value=GetImageProperty(image,"label",exception); if (value != (const char *) NULL) - extract_info.height+=(size_t) ((metrics.ascent- - metrics.descent+4)*MultilineCensus(value)); + extract_info.height+=(size_t) ((metrics.ascent-metrics.descent+4)* + MultilineCensus(value)); frame_image=FrameImage(image,&extract_info,image->compose,exception); if (frame_image != (Image *) NULL) { @@ -897,6 +896,7 @@ MagickExport Image *MontageImageList(const ImageInfo *image_info, tile_image=DestroyImage(tile_image); if (texture != (Image *) NULL) texture=DestroyImage(texture); + title=DestroyString(title); master_list=(Image **) RelinquishMagickMemory(master_list); draw_info=DestroyDrawInfo(draw_info); clone_info=DestroyImageInfo(clone_info);