xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ce...@apache.org
Subject svn commit: r825680 - /xmlbeans/trunk/src/tools/org/apache/xmlbeans/impl/xsd2inst/SampleXmlUtil.java
Date Thu, 15 Oct 2009 22:07:24 GMT
Author: cezar
Date: Thu Oct 15 22:07:23 2009
New Revision: 825680

URL: http://svn.apache.org/viewvc?rev=825680&view=rev
Log:
Fix for Jira XMLBEANS-410. Contributed by Mark D Henning.


Modified:
    xmlbeans/trunk/src/tools/org/apache/xmlbeans/impl/xsd2inst/SampleXmlUtil.java

Modified: xmlbeans/trunk/src/tools/org/apache/xmlbeans/impl/xsd2inst/SampleXmlUtil.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/tools/org/apache/xmlbeans/impl/xsd2inst/SampleXmlUtil.java?rev=825680&r1=825679&r2=825680&view=diff
==============================================================================
--- xmlbeans/trunk/src/tools/org/apache/xmlbeans/impl/xsd2inst/SampleXmlUtil.java (original)
+++ xmlbeans/trunk/src/tools/org/apache/xmlbeans/impl/xsd2inst/SampleXmlUtil.java Thu Oct
15 22:07:23 2009
@@ -554,11 +554,11 @@
 
         if (fractionDigits > 0)
             if (totalDigits >= 0)
-                result.setScale(Math.max(fractionDigits, totalDigits - digits));
+                result = result.setScale(Math.max(fractionDigits, totalDigits - digits));
             else
-                result.setScale(fractionDigits);
+                result = result.setScale(fractionDigits);
         else if (fractionDigits == 0)
-            result.setScale(0);
+            result = result.setScale(0);
 
         return result.toString();
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org


Mime
View raw message