summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-26 06:47:56 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-27 07:54:45 +0200
commit9d31c61103e91ecd4e24d9fb7838f49481ac2f0f (patch)
tree24525d861e749ea7ab742e007beb027d339ec4b9 /chart2/source
parentdfbf87785607b809f8bd507fd7f6ff2301bf34a0 (diff)
enable z axis objects when changing chart type, tdf#94290
Change-Id: I4c1e3ff061692a9457557a4fecea55371f2aadb5
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/controller/sidebar/ChartElementsPanel.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.cxx b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
index acfa73df7158..6f0d25f10fd4 100644
--- a/chart2/source/controller/sidebar/ChartElementsPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
@@ -401,7 +401,12 @@ void ChartElementsPanel::updateData()
mpCB2ndXAxis->Check(isAxisVisible(mxModel, AxisType::X_SECOND));
mpCB2ndYAxis->Check(isAxisVisible(mxModel, AxisType::Y_SECOND));
- if (nDimension != 3)
+ if (nDimension == 3)
+ {
+ mpCBZAxis->Enable();
+ mpCBZAxisTitle->Enable();
+ }
+ else
{
mpCBZAxis->Disable();
mpCBZAxisTitle->Disable();