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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to