summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-23 14:43:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-23 19:27:16 +0200
commit09af9756151ae0c307b314c05deb0c5d9ff1b8cf (patch)
tree5391bd1b60e7d99583c417ab6fa7846685762dde /editeng
parentDrop default values for parameters that are defaulted only once (diff)
downloadcore-09af9756151ae0c307b314c05deb0c5d9ff1b8cf.tar.gz
core-09af9756151ae0c307b314c05deb0c5d9ff1b8cf.zip
tdf#125297 List Format wrongly applied to text pasted
regression from commit f4ea84ff370d33a02a8fb1d6405b9d964491258e Date: Thu Apr 25 16:35:14 2019 +0200 tdf#119650 slow saving spreadsheet with comments, part 1 Change-Id: I91b3c009fb8b6739e98537de227ab563828b9c80 Reviewed-on: https://gerrit.libreoffice.org/72842 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/outliner/outliner.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index d015b9c97c03..2d757fb23c9d 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -410,7 +410,11 @@ void Outliner::SetText( const OUString& rText, Paragraph* pPara )
sal_Int32 nPara = pParaList->GetAbsPos( pPara );
if (pEditEngine->GetText( nPara ) == rText)
- return; // do nothing
+ {
+ // short-circuit logic to improve performance
+ bFirstParaIsEmpty = false;
+ return;
+ }
bool bUpdate = pEditEngine->GetUpdateMode();
pEditEngine->SetUpdateMode( false );