From: cristy Date: Wed, 24 Nov 2010 00:45:05 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8462 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d52fcaca93d0c835530075f98b43643f07a6e97;p=imagemagick --- diff --git a/magick/display.c b/magick/display.c index f727a9547..9d73ca715 100644 --- a/magick/display.c +++ b/magick/display.c @@ -13563,9 +13563,9 @@ static Image *XVisualDirectoryImage(Display *display, } exception=DestroyExceptionInfo(exception); filelist=(char **) RelinquishMagickMemory(filelist); - read_info=DestroyImageInfo(read_info); if (images == (Image *) NULL) { + read_info=DestroyImageInfo(read_info); XSetCursorState(display,windows,MagickFalse); ThrowXWindowFatalException(ImageError,"NoImagesWereLoaded",filenames); return((Image *) NULL); @@ -13573,14 +13573,16 @@ static Image *XVisualDirectoryImage(Display *display, /* Create the Visual Image Directory. */ - montage_info=CloneMontageInfo(resource_info->image_info,(MontageInfo *) NULL); + montage_info=CloneMontageInfo(read_info,(MontageInfo *) NULL); + montage_info->pointsize=10; if (resource_info->font != (char *) NULL) (void) CloneString(&montage_info->font,resource_info->font); (void) CopyMagickString(montage_info->filename,filename,MaxTextExtent); - montage_image=MontageImageList(resource_info->image_info,montage_info, - GetFirstImageInList(images),&images->exception); - montage_info=DestroyMontageInfo(montage_info); + montage_image=MontageImageList(read_info,montage_info,GetFirstImageInList( + images),&images->exception); images=DestroyImageList(images); + montage_info=DestroyMontageInfo(montage_info); + read_info=DestroyImageInfo(read_info); XSetCursorState(display,windows,MagickFalse); if (montage_image == (Image *) NULL) return(montage_image);