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

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 7 10:07:11 UTC 2021


 editeng/source/editeng/editdoc.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 73c9ef661d9ef6237d3fd3c259fd040a545b44cf
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue Jul 6 18:51:38 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Jul 7 12:06:29 2021 +0200

    tdf#132740 don't broadcast if modified status has not changed
    
    take 10% of the time off
    
    Change-Id: I75c8d5e1297de342df711d15260073db59946116
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118531
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 99a7e22fbdc9..adaff884bcae 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -2199,6 +2199,8 @@ void EditDoc::ClearSpellErrors()
 
 void EditDoc::SetModified( bool b )
 {
+    if (bModified == b)
+        return;
     bModified = b;
     if ( bModified )
     {


More information about the Libreoffice-commits mailing list