summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-27 21:09:37 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-28 01:12:51 -0400
commitd832acf33debc09d8d869d8db354049b69af2a6c (patch)
tree7e789a24235d64ffba46aaa540ea9141696ce1bf /sc
parent96228fa3ec1ac4aaf648f791d9249418b1213f1a (diff)
Now we don't need to check for the cell type; it's always of formula type.
Change-Id: I4066975340f7e8a89e9e4d07cc7bed3851da52b6
Diffstat (limited to 'sc')
-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