[Libreoffice-commits] core.git: editeng/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu May 23 17:28:24 UTC 2019


 editeng/source/outliner/outliner.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 09af9756151ae0c307b314c05deb0c5d9ff1b8cf
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu May 23 14:43:49 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu May 23 19:27:16 2019 +0200

    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 at collabora.co.uk>

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 );


More information about the Libreoffice-commits mailing list