diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-01 18:36:42 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-11-04 13:59:18 -0500 |
commit | 488b1ea1b9e780930802f5e4eead37552d1c3f6c (patch) | |
tree | b8526458c3def6ea4b7af4d2f1f571741ff680a4 /sc/source/core/data/column3.cxx | |
parent | a364a87f73fc2730a987992a8d4242bc12f788d0 (diff) |
Fix multiple operations with formula cell with indirect dependency.
Now the unit test passes. Good.
Change-Id: I23fa8355805c192f43db0199f3628f2bf457a645
Diffstat (limited to 'sc/source/core/data/column3.cxx')
-rw-r--r-- | sc/source/core/data/column3.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index ece9035d094e..61f5326e6d45 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -74,13 +74,13 @@ void ScColumn::Broadcast( SCROW nRow ) pDocument->Broadcast(aHint); } -void ScColumn::BroadcastCells( const std::vector<SCROW>& rRows ) +void ScColumn::BroadcastCells( const std::vector<SCROW>& rRows, sal_uLong nHint ) { if (rRows.empty()) return; // Broadcast the changes. - ScHint aHint(SC_HINT_DATACHANGED, ScAddress(nCol, 0, nTab)); + ScHint aHint(nHint, ScAddress(nCol, 0, nTab)); std::vector<SCROW>::const_iterator itRow = rRows.begin(), itRowEnd = rRows.end(); for (; itRow != itRowEnd; ++itRow) { @@ -285,7 +285,7 @@ void ScColumn::DeleteRow( SCROW nStartRow, SCSIZE nSize ) sc::SharedFormulaUtil::joinFormulaCellAbove(aPos); // Single cell broadcasts on deleted cells. - BroadcastCells(aDeleteRowsFunc.getNonEmptyRows()); + BroadcastCells(aDeleteRowsFunc.getNonEmptyRows(), SC_HINT_DATACHANGED); // Shift the text attribute array too (before the broadcast). maCellTextAttrs.erase(nStartRow, nEndRow); @@ -628,7 +628,7 @@ void ScColumn::DeleteArea(SCROW nStartRow, SCROW nEndRow, sal_uInt16 nDelFlag) // Broadcast on only cells that were deleted; no point broadcasting on // cells that were already empty before the deletion. - BroadcastCells(aDeletedRows); + BroadcastCells(aDeletedRows, SC_HINT_DATACHANGED); } bool ScColumn::InitBlockPosition( sc::ColumnBlockPosition& rBlockPos ) |