summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-09 16:30:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-08-18 07:25:15 +0000
commitcbab44f5eb27c8a45905167d2443f56b816b4a7b (patch)
tree643ba2b77965ae9d834e1f73625e97607ed55ebf /sc
parent6f069cc1b7b566886d47c65d2e70580eb15fafd8 (diff)
Resolves: tdf#101347 conditional formatting super slow on exit
since... commit 88a0c7d01b7dfd085a0569030f97cc7de0f0d106 Date: Sat Mar 26 13:11:53 2016 +0100 switch to a listener based cond format update, tdf#95437 I'm obviously assuming here that the notify doesn't matter when the broadcasted is shutting down. Change-Id: I0fef0ac1c1d8757199dcffb3c8ec1b05a73c1f17 Reviewed-on: https://gerrit.libreoffice.org/28006 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/colorscale.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx
index cfd6acf76645..4d38970723f3 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -131,9 +131,14 @@ ScFormulaListener::~ScFormulaListener()
stopListening();
}
-void ScFormulaListener::Notify( const SfxHint& )
+void ScFormulaListener::Notify(const SfxHint& rHint)
{
mbDirty = true;
+
+ const SfxSimpleHint* pSimpleHint = dynamic_cast<const SfxSimpleHint*>(&rHint);
+ if (pSimpleHint && pSimpleHint->GetId() == SFX_HINT_DYING)
+ return;
+
if (maCallbackFunction)
maCallbackFunction();
}