Patch submitted by Harald G. Henne (initially in Bugzilla #48167)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@883314
13f79535-47bb-0310-9956-
ffa450edef68
float[] comps = col.getColorComponents(null);
assert comps.length == 4;
for (int i = 0; i < 4; i++) {
- int component = Math.round(comps[i] * 256);
+ int component = Math.round(comps[i] * 255);
writeByte(component);
}
} else {
documents. Example: the fix of marks layering will be such a case when it's done.
-->
<release version="FOP Trunk" date="TBD">
+ <action context="Renderers" dev="VH" type="fix" fixes-bug="48185" due-to="Harald G. Henne">
+ Bugfix in AFP output: rounding error when computing the CMYK components of a color.
+ </action>
<action context="Code" dev="VH" type="fix" fixes-bug="48167" due-to="Venkat Reddy">
Bugfix: when #CMYK pseudo-profile was used in the rgb-icc() function, always the fallback
RGB colors were used instead.