diff options
Diffstat (limited to 'sc/source/core/data/document.cxx')
-rw-r--r-- | sc/source/core/data/document.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 34ae049efc3e..e631307dcf3c 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -3320,16 +3320,13 @@ void ScDocument::SetNumberFormat( const ScAddress& rPos, sal_uInt32 nNumberForma } void ScDocument::GetNumberFormatInfo( short& nType, sal_uLong& nIndex, - const ScAddress& rPos, const ScFormulaCell* pCell ) const + const ScAddress& rPos ) const { SCTAB nTab = rPos.Tab(); if ( nTab < static_cast<SCTAB>(maTabs.size()) && maTabs[nTab] ) { nIndex = maTabs[nTab]->GetNumberFormat( rPos ); - if ( (nIndex % SV_COUNTRY_LANGUAGE_OFFSET) == 0 && pCell) - pCell->GetFormatInfo(nType, nIndex); - else - nType = GetFormatTable()->GetType( nIndex ); + nType = GetFormatTable()->GetType( nIndex ); } else { |