summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/data/cell2.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx
index a68203fca223..6369e18df8f7 100644
--- a/sc/source/core/data/cell2.cxx
+++ b/sc/source/core/data/cell2.cxx
@@ -1820,10 +1820,7 @@ bool ScFormulaCell::InterpretFormulaGroup()
void ScFormulaCell::StartListeningTo( ScDocument* pDoc )
{
- if ( eCellType == CELLTYPE_FORMULA && !pDoc->IsClipOrUndo()
- && !pDoc->GetNoListening()
- && !((ScFormulaCell*)this)->IsInChangeTrack()
- )
+ if (!pDoc->IsClipOrUndo() && !pDoc->GetNoListening() && !IsInChangeTrack())
{
pDoc->SetDetectiveDirty(true); // It has changed something
@@ -1907,9 +1904,7 @@ void ScFormulaCell::StartListeningTo( ScDocument* pDoc )
void ScFormulaCell::EndListeningTo( ScDocument* pDoc, ScTokenArray* pArr,
ScAddress aCellPos )
{
- if ( eCellType == CELLTYPE_FORMULA && !pDoc->IsClipOrUndo()
- && !((ScFormulaCell*)this)->IsInChangeTrack()
- )
+ if (!pDoc->IsClipOrUndo() && !IsInChangeTrack())
{
pDoc->SetDetectiveDirty(true); // It has changed something