Kaydet (Commit) fbc2b2d9 authored tarafından Regina Henschel's avatar Regina Henschel

tdf#120317 Set control layer name if not default

In commit a9ec212c 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: 's avatarRegina Henschel <rb.henschel@t-online.de>
üst 67e5201c
......@@ -296,6 +296,7 @@ ScDrawLayer::ScDrawLayer( ScDocument* pDocument, const OUString& rName ) :
rAdmin.NewLayer("hinten", sal_uInt8(SC_LAYER_BACK));
rAdmin.NewLayer("intern", sal_uInt8(SC_LAYER_INTERN));
rAdmin.NewLayer("Controls", sal_uInt8(SC_LAYER_CONTROLS));
rAdmin.NewLayer("hidden", sal_uInt8(SC_LAYER_HIDDEN));
// "Controls" is new - must also be created when loading
......@@ -93,6 +93,7 @@ void DocumentDrawModelManager::InitDrawModel()
sLayerNm = "Controls";
mnControls = mpDrawModel->GetLayerAdmin().NewLayer( sLayerNm )->GetID();
// add invisible layers corresponding to the visible ones.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment