sc/source/ui/view/formatsh.cxx |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

New commits:
commit b45cbaa2ea50b2b6f28e78888bbae121deb8558c
Author: Eike Rathke <er...@redhat.com>
Date:   Fri Dec 8 22:48:33 2017 +0100

    We already have the type, use it
    
    Change-Id: I77e968e91d6ba44df8a70453f90d11249845a7b3

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:
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to