[Libreoffice-commits] core.git: Branch 'feature/formula-core-rework' - sc/source
Kohei Yoshida
kohei.yoshida at gmail.com
Fri May 3 15:50:57 PDT 2013
sc/source/core/data/column3.cxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 0642bd4c8be643033a7bb9e94d88e15bdc154c30
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Fri May 3 18:51:23 2013 -0400
We need to broadcast here...
With this, all unit tests pass, for now.
Change-Id: I151d4425e7d82d1598fae32460dcb94c8b1d74f7
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 8983fa1..d9eb7f8 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)));
+ }
}
}
More information about the Libreoffice-commits
mailing list