summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-10-16 10:11:26 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-10-16 11:12:52 +0200
commit7215ac4ded82da0c0efc6a5d9465f632e8e8a4b6 (patch)
tree04d911c36662a32718ddea91a1f1ab646cb59cb1
parentc25eaf109a64ae90473b09134540832dafa936c3 (diff)
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.kaganski@collabora.com>
-rw-r--r--chart2/source/model/main/ChartModel_Persistence.cxx3
1 files changed, 2 insertions, 1 deletions
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();