From: Cristy Date: Thu, 4 Apr 2019 11:55:03 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-38~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92105b3191ae5c2c2e344e7f4fb37f94f1dabd1a;p=imagemagick ... --- diff --git a/coders/xwd.c b/coders/xwd.c index b51410c88..4e8a0bc41 100644 --- a/coders/xwd.c +++ b/coders/xwd.c @@ -237,7 +237,8 @@ static Image *ReadXWDImage(const ImageInfo *image_info,ExceptionInfo *exception) ThrowReaderException(CorruptImageError,"FileFormatVersionMismatch"); if (header.header_size < sz_XWDheader) ThrowReaderException(CorruptImageError,"CorruptImage"); - switch (header.visual_class) { + switch (header.visual_class) + { case StaticGray: case GrayScale: case StaticColor: @@ -247,8 +248,9 @@ static Image *ReadXWDImage(const ImageInfo *image_info,ExceptionInfo *exception) break; default: ThrowReaderException(CorruptImageError,"CorruptImage"); - } - switch (header.pixmap_format) { + } + switch (header.pixmap_format) + { case XYBitmap: case XYPixmap: case ZPixmap: