Kaydet (Commit) 14f23858 authored tarafından Daniel Bankston's avatar Daniel Bankston Kaydeden (comit) Markus Mohrhard

Remove extra XText call and pass string directly to ScDocument

Change-Id: I568b86f34335bb9290ae796a6140d6e4ff65752b
üst 5057c65f
...@@ -1558,9 +1558,7 @@ void WorksheetHelper::putFormulaResult( const CellAddress& rAddress, double fVal ...@@ -1558,9 +1558,7 @@ void WorksheetHelper::putFormulaResult( const CellAddress& rAddress, double fVal
void WorksheetHelper::putString( const CellAddress& rAddress, const OUString& rText ) const void WorksheetHelper::putString( const CellAddress& rAddress, const OUString& rText ) const
{ {
Reference< XText > xText( getCell( rAddress ), UNO_QUERY ); getScDocument().SetString( (SCCOL)rAddress.Column, (SCROW)rAddress.Row, (SCTAB)rAddress.Sheet, rText );
OSL_ENSURE( xText.is(), "WorksheetHelper::putString - missing text interface" );
if( xText.is() ) xText->setString( rText );
} }
void WorksheetHelper::putRichString( const CellAddress& rAddress, const RichString& rString, const Font* pFirstPortionFont ) const void WorksheetHelper::putRichString( const CellAddress& rAddress, const RichString& rString, const Font* pFirstPortionFont ) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment