]> source.dussan.org Git - poi.git/commitdiff
patch 55731: StringBuilder logic in DataFormatter.cleanFormatForNumber
authorYegor Kozlov <yegor@apache.org>
Tue, 24 Dec 2013 06:02:27 +0000 (06:02 +0000)
committerYegor Kozlov <yegor@apache.org>
Tue, 24 Dec 2013 06:02:27 +0000 (06:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553248 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/usermodel/DataFormatter.java

index 273dd89ef29b4ea88eefb917bfe7124cb6a5d5bd..334cd0670f2d8f45bcf5729a4099f5cbb998a848 100644 (file)
@@ -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--;
                 }
             }
         }