]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 20 Sep 2011 17:41:05 +0000 (17:41 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 20 Sep 2011 17:41:05 +0000 (17:41 +0000)
MagickCore/display.c
MagickWand/display.c

index 150fb7a6f3416e5826d3f30820768b743438474f..1837e734ace9c78af22c1b4b4d7bac543a53a9e6 100644 (file)
@@ -14683,7 +14683,7 @@ MagickExport Image *XDisplayImage(Display *display,XResourceInfo *resource_info,
         Window name is the base of the filename.
       */
       GetPathComponent(display_image->magick_filename,TailPath,filename);
-      if (GetImageListLength(display_image) == 1)
+      if (display_image->scene == 0)
         (void) FormatLocaleString(windows->image.name,MaxTextExtent,
           "%s: %s",MagickPackageName,filename);
       else
index dd54122e16e50bdb27dd35701b3bb6b7ca26d99d..dd164ed98591d92ade5e2c3b22f88738a868ac45 100644 (file)
@@ -669,6 +669,7 @@ WandExport MagickBooleanType DisplayImageCommand(ImageInfo *image_info,
           state|=ExitState;
         if (LocaleCompare(filename,"-") == 0)
           state|=ExitState;
+        RemoveAllImageStack();
         continue;
       }
     pend=image != (Image *) NULL ? MagickTrue : MagickFalse;