diff options
author | Xisco Fauli <anistenis@gmail.com> | 2017-10-27 01:40:12 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2017-10-27 14:56:57 +0200 |
commit | aace85877c85935bbe92ecdfc1c27271b89628e5 (patch) | |
tree | 5e64172af72ebed6a82bc77a16024d6cfbb20df7 /chart2 | |
parent | b53974c1530d14eebdc561ada3ecaf8fc3b58929 (diff) |
tdf#113026: disable mpBoxLegend when legend not visible
Change-Id: Idc297808e1d95aecfd42e91a2aa7b99523ac7fb8
Reviewed-on: https://gerrit.libreoffice.org/43924
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Tested-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/sidebar/ChartElementsPanel.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.cxx b/chart2/source/controller/sidebar/ChartElementsPanel.cxx index 8404ae624bf5..9863b538c073 100644 --- a/chart2/source/controller/sidebar/ChartElementsPanel.cxx +++ b/chart2/source/controller/sidebar/ChartElementsPanel.cxx @@ -416,6 +416,7 @@ void ChartElementsPanel::updateData() SolarMutexGuard aGuard; mpCBLegend->Check(isLegendVisible(mxModel)); + mpBoxLegend->Enable( isLegendVisible(mxModel) ); mpCBTitle->Check(isTitleVisisble(mxModel, TitleHelper::MAIN_TITLE)); mpCBSubtitle->Check(isTitleVisisble(mxModel, TitleHelper::SUB_TITLE)); mpCBXAxisTitle->Check(isTitleVisisble(mxModel, TitleHelper::X_AXIS_TITLE)); |