Kaydet (Commit) f4ea84ff authored tarafından Noel Grandin's avatar Noel Grandin

tdf#119650 slow saving spreadsheet with comments, part 1

Reducing the number of times the editeng needs to reformat text takes
saving from from 278s to 151s

Change-Id: I32ba0ab65b4dc0f268cc2cda802570673a316ea0
Reviewed-on: https://gerrit.libreoffice.org/71358
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst ae381d9c
......@@ -407,12 +407,15 @@ void Outliner::SetText( const OUString& rText, Paragraph* pPara )
DBG_ASSERT(pPara,"SetText:No Para");
sal_Int32 nPara = pParaList->GetAbsPos( pPara );
if (pEditEngine->GetText( nPara ) == rText)
return; // do nothing
bool bUpdate = pEditEngine->GetUpdateMode();
pEditEngine->SetUpdateMode( false );
ImplBlockInsertionCallbacks( true );
sal_Int32 nPara = pParaList->GetAbsPos( pPara );
if (rText.isEmpty())
pEditEngine->SetText( nPara, rText );
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