summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorRegina Henschel <rb.henschel@t-online.de>2018-10-05 21:24:45 +0200
committerRegina Henschel <rb.henschel@t-online.de>2018-10-07 15:11:36 +0200
commitfbc2b2d93a091c9dba26139878dd3d0acc5f31e9 (patch)
tree92f0015ee9186180c84f040f021ed59ecfa4e3d9 /sw
parent67e5201cc6caee52d8e37e98a0d535c085c19cb4 (diff)
tdf#120317 Set control layer name if not default
In commit a9ec212c1b545d745285f0ab3119a80713b1d1f2 the internal default name of the layer, which holds form controls, was changed to controls, the same name as used in file format and UNO. Users of the class SdrLayerAdmin have to set the control layer name explicitly in case they want an own, different name. Change-Id: Ia08a85a4d01a75ee2c5115da25b2a409204ccc01 Reviewed-on: https://gerrit.libreoffice.org/61447 Tested-by: Jenkins Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/DocumentDrawModelManager.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/doc/DocumentDrawModelManager.cxx b/sw/source/core/doc/DocumentDrawModelManager.cxx
index e6da069859fd..1f5f4bfa8f5a 100644
--- a/sw/source/core/doc/DocumentDrawModelManager.cxx
+++ b/sw/source/core/doc/DocumentDrawModelManager.cxx
@@ -93,6 +93,7 @@ void DocumentDrawModelManager::InitDrawModel()
sLayerNm = "Controls";
mnControls = mpDrawModel->GetLayerAdmin().NewLayer( sLayerNm )->GetID();
+ mpDrawModel->GetLayerAdmin().SetControlLayerName(sLayerNm);
// add invisible layers corresponding to the visible ones.
{