summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-05-08 15:15:15 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-05-09 13:34:36 -0400
commitd3a3db0e5fd5693b14caf53e50eb564912980722 (patch)
treeae2f1baf465f575c785e1d91d784d03d3371d79b /sc
parentbeb1db61eeb9dd15bacc4941c2c9fcd91f6df9b6 (diff)
No need to check for broadcaster's presence here.
The old code did because it would then have to create a ScNoteCell to optionally store the broadcaster. That's no longer the case. Change-Id: I5e031270e0ed77425b2be192a1705c64c6fa8f45
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column3.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index e9ecd3103d3a..e36312bdc79b 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -328,10 +328,9 @@ void ScColumn::DeleteRange( SCSIZE nStartIndex, SCSIZE nEndIndex, sal_uInt16 nDe
for ( SCSIZE nIdx = nStartIndex; nIdx <= nEndIndex; ++nIdx )
{
- SCROW nRow = maItems[nIdx].nRow;
- if (((nDelFlag & IDF_CONTENTS) == IDF_CONTENTS) && maBroadcasters.is_empty(nRow))
+ if (((nDelFlag & IDF_CONTENTS) == IDF_CONTENTS))
{
- // all content is deleted and cell does not contain broadcaster
+ // all content is to be deleted.
ScBaseCell* pOldCell = maItems[ nIdx ].pCell;
if (pOldCell->GetCellType() == CELLTYPE_FORMULA)