poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r1553248 - /poi/trunk/src/java/org/apache/poi/ss/usermodel/DataFormatter.java
Date Tue, 24 Dec 2013 06:02:27 GMT
Author: yegor
Date: Tue Dec 24 06:02:27 2013
New Revision: 1553248

URL: http://svn.apache.org/r1553248
Log:
patch 55731:  StringBuilder logic in DataFormatter.cleanFormatForNumber

Modified:
    poi/trunk/src/java/org/apache/poi/ss/usermodel/DataFormatter.java

Modified: poi/trunk/src/java/org/apache/poi/ss/usermodel/DataFormatter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/usermodel/DataFormatter.java?rev=1553248&r1=1553247&r2=1553248&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/usermodel/DataFormatter.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/usermodel/DataFormatter.java Tue Dec 24 06:02:27
2013
@@ -583,6 +583,7 @@ public class DataFormatter {
                         }
                         // Remove the character too
                         sb.deleteCharAt(i);
+                        i--;
                     }
                 }
             }
@@ -606,6 +607,7 @@ public class DataFormatter {
                     }
                     // Remove the _ too
                     sb.deleteCharAt(i);
+                    i--;
                 }
             }
         }



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


Mime
View raw message