You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2013/11/06 21:04:22 UTC

svn commit: r1539447 - /poi/trunk/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java

Author: cedricwalter
Date: Wed Nov  6 20:04:22 2013
New Revision: 1539447

URL: http://svn.apache.org/r1539447
Log:
Bug 55742: fixed hex2dec tests

Modified:
    poi/trunk/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java

Modified: poi/trunk/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java?rev=1539447&r1=1539446&r2=1539447&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java Wed Nov  6 20:04:22 2013
@@ -25,7 +25,7 @@ public class BaseNumberUtils {
 
 
     public static double convertToDecimal(String value, int base, int maxNumberOfPlaces) throws IllegalArgumentException {
-        if (value != null && value.length() != 0) {
+        if (value != null && value.length() == 0) {
             return 0.0;
         }
 



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