aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2013-12-24 06:02:27 +0000
committerYegor Kozlov <yegor@apache.org>2013-12-24 06:02:27 +0000
commit97e6fae71e9841bb94b3478d2f2ea2c26c03efb4 (patch)
tree57e6dc25d8a1705396ba7545456a74105da3e8e6 /src/java
parent2dd8f267d002cec4643d4ec40f5e3969744cb421 (diff)
downloadpoi-97e6fae71e9841bb94b3478d2f2ea2c26c03efb4.tar.gz
poi-97e6fae71e9841bb94b3478d2f2ea2c26c03efb4.zip
patch 55731: StringBuilder logic in DataFormatter.cleanFormatForNumber
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553248 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/poi/ss/usermodel/DataFormatter.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/org/apache/poi/ss/usermodel/DataFormatter.java b/src/java/org/apache/poi/ss/usermodel/DataFormatter.java
index 273dd89ef2..334cd0670f 100644
--- a/src/java/org/apache/poi/ss/usermodel/DataFormatter.java
+++ b/src/java/org/apache/poi/ss/usermodel/DataFormatter.java
@@ -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--;
}
}
}