[Libreoffice-commits] core.git: Branch 'feature/formula-core-rework' - sc/source
Kohei Yoshida
kohei.yoshida at gmail.com
Wed May 8 12:13:32 PDT 2013
sc/source/core/data/column3.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit ee6c86684bdc672fe1e493b901f6bea1bc7c1e1f
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Wed May 8 15:15:15 2013 -0400
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
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index e9ecd31..e36312b 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)
More information about the Libreoffice-commits
mailing list