diff options
author | Daniel Bankston <daniel.e.bankston@gmail.com> | 2012-05-10 15:56:59 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-15 11:28:07 +0200 |
commit | 14f23858c617b8fa3872d743f6d4a78cf2338020 (patch) | |
tree | cda76829df0c57d784ac0585e35ac55a6c360f3f | |
parent | 5057c65fed7e55982de5bda9626fe863b7316c64 (diff) |
Remove extra XText call and pass string directly to ScDocument
Change-Id: I568b86f34335bb9290ae796a6140d6e4ff65752b
-rw-r--r-- | sc/source/filter/oox/worksheethelper.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/filter/oox/worksheethelper.cxx b/sc/source/filter/oox/worksheethelper.cxx index 42e3f708f397..0f6fb0aa4252 100644 --- a/sc/source/filter/oox/worksheethelper.cxx +++ b/sc/source/filter/oox/worksheethelper.cxx @@ -1558,9 +1558,7 @@ void WorksheetHelper::putFormulaResult( const CellAddress& rAddress, double fVal void WorksheetHelper::putString( const CellAddress& rAddress, const OUString& rText ) const { - Reference< XText > xText( getCell( rAddress ), UNO_QUERY ); - OSL_ENSURE( xText.is(), "WorksheetHelper::putString - missing text interface" ); - if( xText.is() ) xText->setString( rText ); + getScDocument().SetString( (SCCOL)rAddress.Column, (SCROW)rAddress.Row, (SCTAB)rAddress.Sheet, rText ); } void WorksheetHelper::putRichString( const CellAddress& rAddress, const RichString& rString, const Font* pFirstPortionFont ) const |