summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/dialogs/tp_Scale.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-02-20 20:42:29 +0100
committerEike Rathke <erack@redhat.com>2017-02-20 20:58:17 +0100
commitce315ac12119f30be5789784010889e38b6f75a4 (patch)
tree10683ac076d7b98ac030009e6ba7a2b2e6a80772 /chart2/source/controller/dialogs/tp_Scale.cxx
parenttry to fix "random config" tb (diff)
downloadcore-ce315ac12119f30be5789784010889e38b6f75a4.tar.gz
core-ce315ac12119f30be5789784010889e38b6f75a4.zip
SvNumberFormatter::GetType() does not include NumberFormat::DEFINED
... so masking it out is unnecessary. Change-Id: I4b25ced640f9287c4db52a6257020fce4e4c1303
Diffstat (limited to 'chart2/source/controller/dialogs/tp_Scale.cxx')
-rw-r--r--chart2/source/controller/dialogs/tp_Scale.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/dialogs/tp_Scale.cxx b/chart2/source/controller/dialogs/tp_Scale.cxx
index c588718120b5..29ff3261a810 100644
--- a/chart2/source/controller/dialogs/tp_Scale.cxx
+++ b/chart2/source/controller/dialogs/tp_Scale.cxx
@@ -422,11 +422,11 @@ DeactivateRC ScaleTabPage::DeactivatePage(SfxItemSet* pItemSet)
bool bDateAxis = chart2::AxisType::DATE == m_nAxisType;
sal_uInt32 nMinMaxOriginFmt = m_pFmtFldMax->GetFormatKey();
- if ((pNumFormatter->GetType(nMinMaxOriginFmt) & ~css::util::NumberFormat::DEFINED) == css::util::NumberFormat::TEXT)
+ if (pNumFormatter->GetType(nMinMaxOriginFmt) == css::util::NumberFormat::TEXT)
nMinMaxOriginFmt = 0;
// numberformat_text cause numbers to fail being numbers... Shouldn't happen, but can.
sal_uInt32 nStepFmt = m_pFmtFldStepMain->GetFormatKey();
- if ((pNumFormatter->GetType(nStepFmt) & ~css::util::NumberFormat::DEFINED) == css::util::NumberFormat::TEXT)
+ if (pNumFormatter->GetType(nStepFmt) == css::util::NumberFormat::TEXT)
nStepFmt = 0;
Control* pControl = nullptr;