summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorDaniel Bankston <daniel.e.bankston@gmail.com>2012-05-10 15:56:59 -0500
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-05-15 11:28:07 +0200
commit14f23858c617b8fa3872d743f6d4a78cf2338020 (patch)
treecda76829df0c57d784ac0585e35ac55a6c360f3f /sc
parentRemove getCellBlock() code that always returns null. (diff)
downloadcore-14f23858c617b8fa3872d743f6d4a78cf2338020.tar.gz
core-14f23858c617b8fa3872d743f6d4a78cf2338020.zip
Remove extra XText call and pass string directly to ScDocument
Change-Id: I568b86f34335bb9290ae796a6140d6e4ff65752b
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/oox/worksheethelper.cxx4
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