You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by sp...@apache.org on 2008/05/11 20:05:52 UTC
svn commit: r655349 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/NumberProperty.java
Author: spepping
Date: Sun May 11 11:05:51 2008
New Revision: 655349
URL: http://svn.apache.org/viewvc?rev=655349&view=rev
Log:
The spec requires rounding, not truncating
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/NumberProperty.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/NumberProperty.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/NumberProperty.java?rev=655349&r1=655348&r2=655349&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/NumberProperty.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/NumberProperty.java Sun May 11 11:05:51 2008
@@ -91,7 +91,7 @@
}
Number val = p.getNumber();
if (val != null) {
- int i = val.intValue();
+ int i = Math.round(val.floatValue());
if (i <= 0) {
i = 1;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org