chart2/source/model/main/ChartModel_Persistence.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 7215ac4ded82da0c0efc6a5d9465f632e8e8a4b6
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Mon Oct 16 10:11:26 2023 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon Oct 16 11:12:52 2023 +0200

    tdf#157776: Do not send delayed update notifications for setModified(false)
    
    Change-Id: I4948cc217079d2ed535b95e3892e619736237cc7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158014
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx 
b/chart2/source/model/main/ChartModel_Persistence.cxx
index 74ae45dff8c2..03824aab5ca5 100644
--- a/chart2/source/model/main/ChartModel_Persistence.cxx
+++ b/chart2/source/model/main/ChartModel_Persistence.cxx
@@ -671,7 +671,8 @@ void SAL_CALL ChartModel::setModified( sal_Bool bModified )
 
     if( m_nControllerLockCount > 0 )
     {
-        m_bUpdateNotificationsPending = true;
+        if (bModified)
+            m_bUpdateNotificationsPending = true; // Maybe !bModified should 
reset it?
         return;//don't call listeners if controllers are locked
     }
     aGuard.clear();

Reply via email to