diff options
author | Daniel Bankston <daniel.e.bankston@gmail.com> | 2012-05-11 10:14:43 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-15 11:28:08 +0200 |
commit | 1158a8b833441b33ca30cfc1fae9f8f283745d81 (patch) | |
tree | ea6f978262e186e8bf570f44fd89a4d6c5f26628 | |
parent | ac409adb1926f6c4f865b3c6df7bfd57e298a60b (diff) |
Use ScUnoConversion instead of casts for address conversion
Change-Id: Ia3fbe15aeed9a3cb7928ada1a438b190f8fbb017
-rw-r--r-- | sc/source/filter/oox/worksheethelper.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/filter/oox/worksheethelper.cxx b/sc/source/filter/oox/worksheethelper.cxx index 49ab86a886ea..e9cefd7dd77f 100644 --- a/sc/source/filter/oox/worksheethelper.cxx +++ b/sc/source/filter/oox/worksheethelper.cxx @@ -1548,7 +1548,9 @@ void WorksheetHelper::setManualRowHeight( sal_Int32 nRow ) void WorksheetHelper::putValue( const CellAddress& rAddress, double fValue ) const { - getScDocument().SetValue( (SCCOL)rAddress.Column, (SCROW)rAddress.Row, (SCTAB)rAddress.Sheet, fValue ); + ScAddress aAddress; + ScUnoConversion::FillScAddress( aAddress, rAddress ); + getScDocument().SetValue( aAddress.Col(), aAddress.Row(), aAddress.Tab(), fValue ); } void WorksheetHelper::putFormulaResult( const CellAddress& rAddress, double fValue ) const @@ -1567,7 +1569,9 @@ void WorksheetHelper::putFormulaResult( const CellAddress& rAddress, double fVal void WorksheetHelper::putString( const CellAddress& rAddress, const OUString& rText ) const { - getScDocument().SetString( (SCCOL)rAddress.Column, (SCROW)rAddress.Row, (SCTAB)rAddress.Sheet, rText ); + ScAddress aAddress; + ScUnoConversion::FillScAddress( aAddress, rAddress ); + getScDocument().SetString( aAddress.Col(), aAddress.Row(), aAddress.Tab(), rText ); } void WorksheetHelper::putRichString( const CellAddress& rAddress, const RichString& rString, const Font* pFirstPortionFont ) const |