summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column3.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-01-29 14:00:47 -0500
committerEike Rathke <erack@redhat.com>2014-01-30 23:40:11 +0000
commit92346fb7714ca7c6a467771d8a8b01305c1b17d1 (patch)
tree8eafb751f8ab5095bb79a168c36859052eec0498 /sc/source/core/data/column3.cxx
parent383e5543593848cbd1458d5c5dad5e7b7b17ee09 (diff)
fdo#74014: Broadcast changes during undo and redo after paste.
Change-Id: I271bbba5e5eb70e48274a4a062d125456af8ff6c (cherry picked from commit f5d8029a456c2c708cbc2b67f2d7875540dff1ab) Reviewed-on: https://gerrit.libreoffice.org/7728 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source/core/data/column3.cxx')
-rw-r--r--sc/source/core/data/column3.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 798d5444a570..54b53f23cf69 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -574,7 +574,8 @@ public:
}
-void ScColumn::DeleteArea(SCROW nStartRow, SCROW nEndRow, sal_uInt16 nDelFlag)
+void ScColumn::DeleteArea(
+ SCROW nStartRow, SCROW nEndRow, sal_uInt16 nDelFlag, bool bBroadcast )
{
sal_uInt16 nContMask = IDF_CONTENTS;
// IDF_NOCAPTIONS needs to be passed too, if IDF_NOTE is set
@@ -626,9 +627,12 @@ void ScColumn::DeleteArea(SCROW nStartRow, SCROW nEndRow, sal_uInt16 nDelFlag)
else if ((nDelFlag & IDF_HARDATTR) == IDF_HARDATTR)
pAttrArray->DeleteHardAttr( nStartRow, nEndRow );
- // Broadcast on only cells that were deleted; no point broadcasting on
- // cells that were already empty before the deletion.
- BroadcastCells(aDeletedRows, SC_HINT_DATACHANGED);
+ if (bBroadcast)
+ {
+ // Broadcast on only cells that were deleted; no point broadcasting on
+ // cells that were already empty before the deletion.
+ BroadcastCells(aDeletedRows, SC_HINT_DATACHANGED);
+ }
}
bool ScColumn::InitBlockPosition( sc::ColumnBlockPosition& rBlockPos )