From 392e47d54622190b132b43085d7e7ac8a5293a9c Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Tue, 16 Sep 2003 14:14:04 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/datatypes/ColorType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /** -- 2.39.5