[Libreoffice-commits] core.git: chart2/source

Xisco Fauli anistenis at gmail.com
Fri Oct 27 12:57:19 UTC 2017


 chart2/source/controller/sidebar/ChartElementsPanel.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit aace85877c85935bbe92ecdfc1c27271b89628e5
Author: Xisco Fauli <anistenis at gmail.com>
Date:   Fri Oct 27 01:40:12 2017 +0200

    tdf#113026: disable mpBoxLegend when legend not visible
    
    Change-Id: Idc297808e1d95aecfd42e91a2aa7b99523ac7fb8
    Reviewed-on: https://gerrit.libreoffice.org/43924
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
    Tested-by: Xisco FaulĂ­ <xiscofauli at libreoffice.org>

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));


More information about the Libreoffice-commits mailing list