diff options
author | William Victor Mote <vmote@apache.org> | 2003-09-16 14:14:04 +0000 |
---|---|---|
committer | William Victor Mote <vmote@apache.org> | 2003-09-16 14:14:04 +0000 |
commit | 392e47d54622190b132b43085d7e7ac8a5293a9c (patch) | |
tree | 692404398376dced12ceef00da73f6daa5635dd8 | |
parent | 68cbeb606fa092a90d23cdc466c1a32106ea8dc3 (diff) | |
download | xmlgraphics-fop-392e47d54622190b132b43085d7e7ac8a5293a9c.tar.gz xmlgraphics-fop-392e47d54622190b132b43085d7e7ac8a5293a9c.zip |
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
-rw-r--r-- | src/java/org/apache/fop/datatypes/ColorType.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); } /** |