Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jan 23, 2018
1 parent ad52ba8 commit bdac2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MagickCore/composite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ MagickExport MagickBooleanType CompositeImage(Image *image,
break;
}
pixel=0.0;
if ((IsNaN(Da) != MagickFalse) && (IsNaN(Sca) != MagickFalse))
if ((IsNaN(Da) == MagickFalse) && (IsNaN(Sca) == MagickFalse))
pixel=QuantumRange*gamma*(Sa*Da-Sa*Da*MagickMin(1.0,(1.0-Dca/Da)*
Sa/Sca)+Sca*(1.0-Da)+Dca*(1.0-Sa));
break;
Expand Down

0 comments on commit bdac2c4

Please sign in to comment.