mirror of https://github.com/apache/poi.git
[github-357] fix equals check in CellNumberFormatter. Thanks to XenoAmess. This closes #357
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902750 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2c479b4967
commit
6e34a3cebe
|
@ -530,7 +530,7 @@ public class CellNumberFormatter extends CellFormatter {
|
|||
int modEndPos = delEndPos + adjust;
|
||||
|
||||
if (modPos < modEndPos) {
|
||||
if ("".equals(nextChange.getToAdd())) {
|
||||
if (nextChange.getToAdd() != null && nextChange.getToAdd().length() == 0) {
|
||||
output.delete(modPos, modEndPos);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue