/[Apache-SVN]
ViewVC logotype

Revision 265688


Jump to revision: Previous Next
Author: jeremias
Date: Thu Sep 1 10:06:53 2005 UTC (18 years, 9 months ago)
Changed paths: 3
Log Message:
PDFNumber.doubleOut() rewritten using java.text.DecimalFormat.
This fixes a bug of doubleOut() not recognizing the scientific format sometimes returned by Double.toString(double).
This change may result in slightly different value being written to the PDF stream. The former doubleOut contained specific code to do special rounding where the new method using DecimalFormat implicitly uses the BigDecimal.ROUND_HALF_EVEN strategy when rounding. These different values hopefully won't make a big visual difference. They don't in my tests.

Changed paths

Path Details
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFNumber.java modified , text changed
Directoryxmlgraphics/fop/trunk/test/java/org/apache/fop/UtilityCodeTestSuite.java modified , text changed
Directoryxmlgraphics/fop/trunk/test/java/org/apache/fop/util/PDFNumberTestCase.java added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26