commit | 637b40f7cead16b6c1fb3a37999404ae1e938ff0 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Sat Jun 13 22:43:57 2015 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Sat Jun 13 22:43:57 2015 +0000 |
tree | 1a7344e5a09361d1693d11971134e679e2fa317f | |
parent | 55f6a354ad84b7891d5b227f19e1213e1ce3c6a0 [diff] |
diff --git a/MagickCore/fx.c b/MagickCore/fx.c index 169110e..e68260c 100644 --- a/MagickCore/fx.c +++ b/MagickCore/fx.c
@@ -3632,6 +3632,10 @@ plasma=ClampToQuantum(pixel+noise*GetPseudoRandomValue(random_info)- noise/2.0); + if (plasma <= 0) + return((Quantum) 0); + if (plasma > QuantumRange) + return(QuantumRange); return(plasma); }