diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2018-10-05 21:24:45 +0200 |
---|---|---|
committer | Regina Henschel <rb.henschel@t-online.de> | 2018-10-07 15:11:36 +0200 |
commit | fbc2b2d93a091c9dba26139878dd3d0acc5f31e9 (patch) | |
tree | 92f0015ee9186180c84f040f021ed59ecfa4e3d9 /sc | |
parent | 67e5201cc6caee52d8e37e98a0d535c085c19cb4 (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 'sc')
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index 7fd0e6bd6201..1e97aa0600f8 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -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.SetControlLayerName("Controls"); rAdmin.NewLayer("hidden", sal_uInt8(SC_LAYER_HIDDEN)); // "Controls" is new - must also be created when loading |