diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2018-10-21 18:24:12 +0200 |
---|---|---|
committer | Regina Henschel <rb.henschel@t-online.de> | 2018-10-23 12:47:43 +0200 |
commit | 12a99f16edb791245a1b56bc9e879f2dd3f1f656 (patch) | |
tree | bb64ed45d4404201afd4620ea2d2d44674cd328a /reportdesign | |
parent | 0c18395d56fe56db375a10592fe2702fa1e700fd (diff) |
Special methods NewStandardLayer and SetStandardLayer not needed
The method SetStandardLayer() is only used once, in method
SdrLayerAdmin::NewStandardLayer(). This method is only used once, in
OReportDefinition::init(). The difference between a layer 'Standard'
and other layers is only in mbUserDefinedLayer. But this difference is
no where evaluated. Therefore an ordinary layer is sufficient. The
layer name is neither stored nor used in the UI, thus translation is
not needed. A layer name must be set, but in this case it is not
used in code, thus handle it same as for layer 'back'.
Change-Id: Ifd4400d432d3b4702e950d3a717ed13d4075c279
Reviewed-on: https://gerrit.libreoffice.org/62144
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/core/api/ReportDefinition.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index de9df0d5a02d..7c0c278c167b 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -590,7 +590,7 @@ void OReportDefinition::init() m_pImpl->m_pReportModel->GetItemPool().FreezeIdRanges(); m_pImpl->m_pReportModel->SetScaleUnit( MapUnit::Map100thMM ); SdrLayerAdmin& rAdmin = m_pImpl->m_pReportModel->GetLayerAdmin(); - rAdmin.NewStandardLayer(sal_uInt8(RPT_LAYER_FRONT)); + rAdmin.NewLayer("front", sal_uInt8(RPT_LAYER_FRONT)); rAdmin.NewLayer("back", sal_uInt8(RPT_LAYER_BACK)); rAdmin.NewLayer("HiddenLayer", sal_uInt8(RPT_LAYER_HIDDEN)); |