Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.5, 1.8.6, 2.0.0
Description
There's a bug in Type4ShadingContext and Type5ShadingContext:
long maxSrcCoord = (int) Math.pow(2, bitsPerCoordinate) - 1; long maxSrcColor = (int) Math.pow(2, bitsPerColorComponent) - 1;
should be
long maxSrcCoord = (long) (Math.pow(2, bitsPerCoordinate) - 1); long maxSrcColor = (long) (Math.pow(2, bitsPerColorComponent) - 1);
The problem is that maxSrcCoord is 7FFFFFFF instead of FFFFFFFF when bitsPerCoordinate is 32.