summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: