summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorDaniel Bankston <daniel.e.bankston@gmail.com>2012-05-11 10:14:43 -0500
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-05-15 11:28:08 +0200
commit1158a8b833441b33ca30cfc1fae9f8f283745d81 (patch)
treeea6f978262e186e8bf570f44fd89a4d6c5f26628 /sc
parentPass forumlaResult value directly to ScDocument (diff)
downloadcore-1158a8b833441b33ca30cfc1fae9f8f283745d81.tar.gz
core-1158a8b833441b33ca30cfc1fae9f8f283745d81.zip
Use ScUnoConversion instead of casts for address conversion
Change-Id: Ia3fbe15aeed9a3cb7928ada1a438b190f8fbb017
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/oox/worksheethelper.cxx8
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