From: William Victor Mote Date: Tue, 16 Sep 2003 14:14:04 +0000 (+0000) Subject: correct computation of integer conversion, as per patch submitted by Peter Herweg... X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1092 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=392e47d54622190b132b43085d7e7ac8a5293a9c;p=xmlgraphics-fop.git correct computation of integer conversion, as per patch submitted by Peter Herweg -- see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23080 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196914 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/datatypes/ColorType.java b/src/java/org/apache/fop/datatypes/ColorType.java index a40fc32f3..461983ea0 100644 --- a/src/java/org/apache/fop/datatypes/ColorType.java +++ b/src/java/org/apache/fop/datatypes/ColorType.java @@ -254,7 +254,7 @@ public class ColorType implements Serializable { if (floatValue < 0) { floatValue = 0; } - return (int) floatValue * 255; + return (int) (floatValue * 255); } /**