diff options
author | Nick Burch <nick@apache.org> | 2011-02-11 12:31:40 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2011-02-11 12:31:40 +0000 |
commit | 39287621938f695c45ec48b5213994203747d0ed (patch) | |
tree | 3a4f474ef69dc826a44784ee639260dbb4b0d89b /src/java | |
parent | 20062200df5d7684a67674ecf6783275b4dcdc6a (diff) | |
download | poi-39287621938f695c45ec48b5213994203747d0ed.tar.gz poi-39287621938f695c45ec48b5213994203747d0ed.zip |
Fix bug #50756 - When formatting numbers based on their Cell Style, treat GENERAL the same as the more typical General
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1069775 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/poi/ss/usermodel/DataFormatter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/ss/usermodel/DataFormatter.java b/src/java/org/apache/poi/ss/usermodel/DataFormatter.java index de586db66a..38afc61d34 100644 --- a/src/java/org/apache/poi/ss/usermodel/DataFormatter.java +++ b/src/java/org/apache/poi/ss/usermodel/DataFormatter.java @@ -196,7 +196,7 @@ public class DataFormatter { if (format != null) { return format; } - if ("General".equals(formatStr) || "@".equals(formatStr)) { + if ("General".equalsIgnoreCase(formatStr) || "@".equals(formatStr)) { if (DataFormatter.isWholeNumber(cellValue)) { return generalWholeNumFormat; } |