summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-05-29 21:48:23 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-05-30 11:37:20 -0400
commit682a81352f6ce9d743ca73c02df5c36b0c6f1253 (patch)
tree5ba9c75fb33fc8b0630f95b79c1bb6235c9c6375
parent05a2a99dd7ee9e7bfb2797e33c5ae04e4b6e3686 (diff)
Get the current decimal separator from ScGlobal.
Change-Id: I6d7bf97d856272810d8ef5eb382d7b299b74d16e
-rw-r--r--sc/source/ui/optdlg/tpformula.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/sc/source/ui/optdlg/tpformula.cxx b/sc/source/ui/optdlg/tpformula.cxx
index 4ed483d6672e..b75c73953af4 100644
--- a/sc/source/ui/optdlg/tpformula.cxx
+++ b/sc/source/ui/optdlg/tpformula.cxx
@@ -92,13 +92,7 @@ ScTpFormulaOptions::ScTpFormulaOptions(Window* pParent, const SfxItemSet& rCoreA
maEdSepArrayRow.SetGetFocusHdl(aLink);
// Get the decimal separator for current locale.
- ScFormulaOptions aOpt;
- const SfxPoolItem* pItem = NULL;
-
- if(SFX_ITEM_SET == rCoreAttrs.GetItemState(SID_SCFORMULAOPTIONS, false , &pItem))
- aOpt = ((const ScTpFormulaItem*)pItem)->GetFormulaOptions();
-
- rtl::OUString aSep = aOpt.GetLocaleDataWrapper().getNumDecimalSep();
+ rtl::OUString aSep = ScGlobal::GetpLocaleData()->getNumDecimalSep();
mnDecSep = aSep.isEmpty() ? sal_Unicode('.') : aSep[0];
}