diff options
Diffstat (limited to 'sc/source/core/data/colorscale.cxx')
-rw-r--r-- | sc/source/core/data/colorscale.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx index 1a088851aa4f..6df2b187991c 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(); } |