summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-04-18 22:03:07 +0200
committerEike Rathke <erack@redhat.com>2016-04-18 22:05:57 +0200
commit44e2da58226448c5617eac08ca2ae3d9a9ad2afa (patch)
treee0c75708bb7d5abdb9da9eeda10c274588da4ece /sc
parent332ffb5e84a114ac74d209da6eb1856fbba22b66 (diff)
Resolves: tdf#99322 re-establish group area listeners after update reference
Change-Id: If2ec5f938c7278ce817de3d89dc84cc0584507ac
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/document.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 39c86340391a..ead717811a9a 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -2593,6 +2593,14 @@ void ScDocument::CopyBlockFromClip(
SetInsertingFromOtherDoc( true);
aRefCxt.meMode = URM_MOVE;
UpdateReference(aRefCxt, rCxt.getUndoDoc(), false);
+
+ // For URM_MOVE group listeners may have been removed,
+ // re-establish them.
+ /* TODO: actually only those in
+ * sc::RefUpdateContext::maRegroupCols are affected,
+ * come up with a start listeners that takes such. */
+ StartNeededListeners();
+
SetInsertingFromOtherDoc( bOldInserting);
}
}