summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-04-18 22:03:07 +0200
committerAndras Timar <andras.timar@collabora.com>2016-04-21 11:01:48 +0200
commita048a6fc091a8b84b947d35a9ff95890a7d1a9af (patch)
tree8b5ab50df068d1a9ac74b954dd71d81e7c4fc964
parentcb457975ad6bf0b65708ec5aac9d7dbd16823873 (diff)
Resolves: tdf#99322 re-establish group area listeners after update reference
Change-Id: If2ec5f938c7278ce817de3d89dc84cc0584507ac (cherry picked from commit 44e2da58226448c5617eac08ca2ae3d9a9ad2afa) Reviewed-on: https://gerrit.libreoffice.org/24226 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit 6c80a566d21ffc0f471f0b282929f964ab10e445)
-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 d3f9b2fa9cf1..f207610d3013 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -2611,6 +2611,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);
}
}