diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-06-01 21:38:53 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-06-01 21:38:53 +0200 |
commit | d4a8a64c218a4640e9701356aa87701d5a80589b (patch) | |
tree | 2a94bafb512349b5ca13147c6039698eb34aeab5 /sc/source/filter/xml/xmlstyli.cxx | |
parent | we cant't check for 2*MAXTAB anymore, this is out of bounds (diff) | |
download | core-d4a8a64c218a4640e9701356aa87701d5a80589b.tar.gz core-d4a8a64c218a4640e9701356aa87701d5a80589b.zip |
change to SCTAB from sal_Int16 and sal_Int32 for sheet index
Diffstat (limited to 'sc/source/filter/xml/xmlstyli.cxx')
-rw-r--r-- | sc/source/filter/xml/xmlstyli.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/xml/xmlstyli.cxx b/sc/source/filter/xml/xmlstyli.cxx index 2474a82c3dfa..3dbc4751b729 100644 --- a/sc/source/filter/xml/xmlstyli.cxx +++ b/sc/source/filter/xml/xmlstyli.cxx @@ -1060,14 +1060,14 @@ void ScCellTextStyleContext::FillPropertySet( const uno::Reference<beans::XPrope if (pCellImp) { ScAddress aPos = pCellImp->GetCellObj().GetPosition(); - if ( static_cast<sal_Int32>(aPos.Tab()) != nLastSheet ) + if ( aPos.Tab() != nLastSheet ) { ESelection aSel = pCellImp->GetSelection(); ScSheetSaveData* pSheetData = ScModelObj::getImplementation(GetImport().GetModel())->GetSheetSaveData(); pSheetData->AddTextStyle( GetName(), aPos, aSel ); - nLastSheet = static_cast<sal_Int32>(aPos.Tab()); + nLastSheet = aPos.Tab(); } } else if ( rXMLImport.GetTables().GetCurrentSheet() != nLastSheet ) |