summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-05-03 18:51:23 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-05-09 13:34:33 -0400
commit62f119b5d1c786203448c3a208fd2a2ffd26b835 (patch)
tree64be28dbb249e6d5ec430e30189a146ef4c8cb59 /sc
parentf34620b40b94d8021637c86ceb651ec881515397 (diff)
We need to broadcast here...
With this, all unit tests pass, for now. Change-Id: I151d4425e7d82d1598fae32460dcb94c8b1d74f7
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column3.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 8983fa130f91..d9eb7f8a755e 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -75,6 +75,15 @@ void ScColumn::Insert( SCROW nRow, ScBaseCell* pNewCell )
CellType eCellType = pNewCell->GetCellType();
if (eCellType == CELLTYPE_FORMULA)
static_cast<ScFormulaCell*>(pNewCell)->StartListeningTo(pDocument);
+
+ if (!pDocument->IsCalcingAfterLoad())
+ {
+ if ( eCellType == CELLTYPE_FORMULA )
+ ((ScFormulaCell*)pNewCell)->SetDirty();
+ else
+ pDocument->Broadcast(
+ ScHint(SC_HINT_DATACHANGED, ScAddress(nCol, nRow, nTab), GetBroadcaster(nRow)));
+ }
}
}