diff options
Diffstat (limited to 'sc/source/core/data/formulacell.cxx')
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index 0a2226f52ba0..ea08c1a91f83 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -3941,6 +3941,9 @@ void ScFormulaCell::EndListeningTo( ScDocument* pDoc, ScTokenArray* pArr, if (pDoc->IsClipOrUndo() || IsInChangeTrack()) return; + if (!HasBroadcaster()) + return; + pDoc->SetDetectiveDirty(true); // It has changed something if ( GetCode()->IsRecalcModeAlways() ) @@ -3983,6 +3986,9 @@ void ScFormulaCell::EndListeningTo( sc::EndListeningContext& rCxt ) if (rCxt.getDoc().IsClipOrUndo() || IsInChangeTrack()) return; + if (!HasBroadcaster()) + return; + ScDocument& rDoc = rCxt.getDoc(); rDoc.SetDetectiveDirty(true); // It has changed something |