diff options
author | Katarina Behrens <bubli@bubli.org> | 2015-02-12 22:48:39 +0100 |
---|---|---|
committer | Katarina Behrens <bubli@bubli.org> | 2015-02-12 23:02:49 +0100 |
commit | 359cfa160b02aef5bb9f792a4650f18279f9eee8 (patch) | |
tree | 42c9fa8e80eeb20739451096ec18c1720bf2c51d /chart2 | |
parent | 25dd3d277e9b90a59e7b2a03202ef0cba7799b68 (diff) |
tdf#84514: don't hide grid along with checkbox if not needed
Regression from .ui migration, which unconditionally (and wrongly)
hides the grid with radiobuttons. Do what the old code did - hide
the whole frame iff the grid ain't visible.
Change-Id: Ia9dc8b166f4031b4c07fbb1969908d314cc3456c
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/dialogs/tp_SeriesToAxis.cxx | 7 | ||||
-rw-r--r-- | chart2/source/controller/dialogs/tp_SeriesToAxis.hxx | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx b/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx index aebb5275e4a2..68d1c78180a3 100644 --- a/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx +++ b/chart2/source/controller/dialogs/tp_SeriesToAxis.cxx @@ -52,6 +52,7 @@ SchOptionTabPage::SchOptionTabPage(vcl::Window* pWindow,const SfxItemSet& rInAtt get(m_pCBConnect,"CB_CONNECTOR"); get(m_pCBAxisSideBySide,"CB_BARS_SIDE_BY_SIDE"); + get(m_pGrpPlotOptions,"frameFL_PLOT_OPTIONS" ); get(m_pGridPlotOptions,"gridPLOT_OPTIONS"); get(m_pRB_DontPaint,"RB_DONT_PAINT"); get(m_pRB_AssumeZero,"RB_ASSUME_ZERO"); @@ -213,7 +214,11 @@ void SchOptionTabPage::Reset(const SfxItemSet* rInAttrs) else { m_pCBIncludeHiddenCells->Show(false); - m_pGridPlotOptions->Show(false); + // check if the radiobutton guys above + // are visible. If they aren't, we can + // as well hide the whole frame + if(!m_pGridPlotOptions->IsVisible()) + m_pGrpPlotOptions->Show(sal_False); } AdaptControlPositionsAndVisibility(); diff --git a/chart2/source/controller/dialogs/tp_SeriesToAxis.hxx b/chart2/source/controller/dialogs/tp_SeriesToAxis.hxx index db4afb60e9fb..ff81b28b59c5 100644 --- a/chart2/source/controller/dialogs/tp_SeriesToAxis.hxx +++ b/chart2/source/controller/dialogs/tp_SeriesToAxis.hxx @@ -53,6 +53,7 @@ private: //member CheckBox* m_pCBConnect; CheckBox* m_pCBAxisSideBySide; + VclFrame* m_pGrpPlotOptions; VclGrid* m_pGridPlotOptions; RadioButton* m_pRB_DontPaint; RadioButton* m_pRB_AssumeZero; |