diff options
author | cristy <urban-warrior@git.imagemagick.org> | 2012-06-26 00:28:37 +0000 |
---|---|---|
committer | cristy <urban-warrior@git.imagemagick.org> | 2012-06-26 00:28:37 +0000 |
commit | ab37187df1c707c6eb99e573a9448ce0b164956d (patch) | |
tree | 1082f54221d78ad1e95366c24d4cd5acd89bb754 /coders/map.c | |
parent | 22cda76e06e47c27015a349354ac7935707061be (diff) | |
download | ImageMagick-ab37187df1c707c6eb99e573a9448ce0b164956d.tar.gz |
Diffstat (limited to 'coders/map.c')
-rw-r--r-- | coders/map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coders/map.c b/coders/map.c index a3f8249fb..e4fe10337 100644 --- a/coders/map.c +++ b/coders/map.c @@ -375,7 +375,8 @@ static MagickBooleanType WriteMAPImage(const ImageInfo *image_info,Image *image, status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception); if (status == MagickFalse) return(status); - if (IssRGBColorspace(image->colorspace) == MagickFalse) + if ((IssRGBColorspace(image->colorspace) == MagickFalse) && + (IsRGBColorspace(image->colorspace) == MagickFalse)) (void) TransformImageColorspace(image,sRGBColorspace,exception); /* Allocate colormap. |