summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-12-08 22:48:33 +0100
committerEike Rathke <erack@redhat.com>2017-12-08 22:48:40 +0100
commitb45cbaa2ea50b2b6f28e78888bbae121deb8558c (patch)
tree10cf4cdde7794af64699cdcd2a96fbfcdab9bf44
parent7330776504ca2e62790f3e3e6d8f575fbad2ec54 (diff)
We already have the type, use it
Change-Id: I77e968e91d6ba44df8a70453f90d11249845a7b3
-rw-r--r--sc/source/ui/view/formatsh.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx
index cb8e690bda15..8afb1072c1dd 100644
--- a/sc/source/ui/view/formatsh.cxx
+++ b/sc/source/ui/view/formatsh.cxx
@@ -2605,14 +2605,7 @@ void ScFormatShell::GetNumFormatState( SfxItemSet& rSet )
sal_Int16 aFormatCode = -1;
if ( eItemState >= SfxItemState::DEFAULT ) //Modify for more robust
{
- const SvNumberformat* pFormatEntry = pFormatter->GetEntry( nNumberFormat );
-
- if ( pFormatEntry )
- {
- aFormatCode = pFormatEntry->GetType();
- }
-
- switch(aFormatCode)
+ switch(nType)
{
case css::util::NumberFormat::NUMBER:
case css::util::NumberFormat::NUMBER| css::util::NumberFormat::DEFINED: