Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
cristy committed Nov 14, 2014
1 parent fc88f4c commit 029fc7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/gradient.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ static Image *ReadGRADIENTImage(const ImageInfo *image_info,
read_info=DestroyImageInfo(read_info);
if (image == (Image *) NULL)
return((Image *) NULL);
(void) SetImageOpacity(image,(Quantum) TransparentOpacity,exception);
(void) CopyMagickString(image->filename,image_info->filename,MaxTextExtent);
icc_color=MagickFalse;
if (LocaleCompare(colorname,"icc") == 0)
Expand Down Expand Up @@ -160,6 +161,7 @@ static Image *ReadGRADIENTImage(const ImageInfo *image_info,
image=DestroyImage(image);
return((Image *) NULL);
}
image->alpha_trait=start_color.alpha_trait;
if (stop_color.alpha_trait != UndefinedPixelTrait)
image->alpha_trait=stop_color.alpha_trait;
status=GradientImage(image,LocaleCompare(image_info->magick,"GRADIENT") == 0 ?
Expand Down

0 comments on commit 029fc7e

Please sign in to comment.