commit | cb77f1f8b29c26c0603f0036cfda961f9d5c8d8e | [log] [tgz] |
---|---|---|
author | dirk <[email protected]> | Tue Nov 03 21:44:11 2015 +0100 |
committer | dirk <[email protected]> | Tue Nov 03 21:44:11 2015 +0100 |
tree | 928abf49cbd77a082060a31caa8af14077cbfce7 | |
parent | e5901cd20a669e04d30d7854393789c67d3555f5 [diff] |
Fix for negative radius.
diff --git a/MagickCore/accelerate.c b/MagickCore/accelerate.c index b3ba492..239618d 100644 --- a/MagickCore/accelerate.c +++ b/MagickCore/accelerate.c
@@ -1801,7 +1801,7 @@ { imageColumns = (unsigned int) image->columns; imageRows = (unsigned int) image->rows; - iRadius = (cl_int) radius; + iRadius = (cl_int) fabs(radius); passes = ((1.0f * imageColumns) * imageColumns * iRadius) / 4000000000.0f; passes = (passes < 1) ? 1: passes;