summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-02-09 11:36:22 -0500
committerKohei Yoshida <kyoshida@novell.com>2010-02-09 11:36:22 -0500
commit0760ed43d7d8e9c8f29e94eba8a954d54ad2ef80 (patch)
tree1b15705556eceb50611ce1e732a88cb598db26db /sc
parent0deefb5d0a6eec79a49602fa02d3dce46231a90a (diff)
koheicsvimport: #i102141# Use the global 'use US English' option only when the Automatic language option is selected.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/rtf/eeimpars.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/filter/rtf/eeimpars.cxx b/sc/source/filter/rtf/eeimpars.cxx
index cb9ba0a5195f..0e1bc54ed4cd 100644
--- a/sc/source/filter/rtf/eeimpars.cxx
+++ b/sc/source/filter/rtf/eeimpars.cxx
@@ -152,9 +152,10 @@ void ScEEImport::WriteToDocument( BOOL bSizeColsRows, double nOutputFactor, SvNu
ScEEParseEntry* pE;
if (!pFormatter)
pFormatter = mpDoc->GetFormatTable();
- bool bNumbersEnglishUS = (pFormatter->GetLanguage() != LANGUAGE_ENGLISH_US);
- if (bNumbersEnglishUS)
+ bool bNumbersEnglishUS = false;
+ if (pFormatter->GetLanguage() == LANGUAGE_SYSTEM)
{
+ // Automatic language option selected. Check for the global 'use US English' option.
SvxHtmlOptions aOpt;
bNumbersEnglishUS = aOpt.IsNumbersEnglishUS();
}