aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2011-02-11 12:31:40 +0000
committerNick Burch <nick@apache.org>2011-02-11 12:31:40 +0000
commit39287621938f695c45ec48b5213994203747d0ed (patch)
tree3a4f474ef69dc826a44784ee639260dbb4b0d89b /src/java
parent20062200df5d7684a67674ecf6783275b4dcdc6a (diff)
downloadpoi-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.java2
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;
}