Skip to content

Commit

Permalink
eliminate compiler exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed May 27, 2023
1 parent bd040a0 commit 9331fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception)
bmp_info.gamma_scale.y=(double) ReadBlobLSBLong(image)/0x10000;
bmp_info.gamma_scale.z=(double) ReadBlobLSBLong(image)/0x10000;

if (bmp_info.colorspace == LCS_CALIBRATED_RBG)
if (bmp_info.colorspace == 0)
{
image->chromaticity.red_primary.x=bmp_info.red_primary.x;
image->chromaticity.red_primary.y=bmp_info.red_primary.y;
Expand Down

0 comments on commit 9331fb3

Please sign in to comment.