]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
correct computation of integer conversion, as per patch submitted by Peter Herweg...
authorWilliam Victor Mote <vmote@apache.org>
Tue, 16 Sep 2003 14:14:04 +0000 (14:14 +0000)
committerWilliam Victor Mote <vmote@apache.org>
Tue, 16 Sep 2003 14:14:04 +0000 (14:14 +0000)
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

index a40fc32f393ae55a607e82213c64c59bc5b690a8..461983ea05927354a0f66b10de0463962b78a9b9 100644 (file)
@@ -254,7 +254,7 @@ public class ColorType implements Serializable {
         if (floatValue < 0) {
             floatValue = 0;
         }
-        return (int) floatValue * 255;
+        return (int) (floatValue * 255);
     }
 
     /**