Kaydet (Commit) b45cbaa2 authored tarafından Eike Rathke's avatar Eike Rathke

We already have the type, use it

Change-Id: I77e968e91d6ba44df8a70453f90d11249845a7b3
üst 73307765
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment