diff options
-rw-r--r-- | chart2/source/controller/dialogs/tp_ChartType.cxx | 7 | ||||
-rw-r--r-- | chart2/source/controller/dialogs/tp_ChartType.hxx | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/chart2/source/controller/dialogs/tp_ChartType.cxx b/chart2/source/controller/dialogs/tp_ChartType.cxx index e4141a8ac855..0a10bae73da0 100644 --- a/chart2/source/controller/dialogs/tp_ChartType.cxx +++ b/chart2/source/controller/dialogs/tp_ChartType.cxx @@ -829,6 +829,12 @@ IMPL_LINK_NOARG(ChartTypeTabPage, SelectSubTypeHdl) IMPL_LINK_NOARG(ChartTypeTabPage, SelectMainTypeHdl) { + selectMainType(); + return 0; +} + +void ChartTypeTabPage::selectMainType() +{ ChartTypeParameter aParameter( this->getCurrentParamter() ); if( m_pCurrentMainType ) @@ -855,7 +861,6 @@ IMPL_LINK_NOARG(ChartTypeTabPage, SelectMainTypeHdl) uno::Reference< beans::XPropertySet > xTemplateProps( this->getCurrentTemplate(), uno::UNO_QUERY ); m_pCurrentMainType->fillExtraControls(aParameter,m_xChartModel,xTemplateProps); } - return 0; } void ChartTypeTabPage::showAllControls( ChartTypeDialogController& rTypeController ) diff --git a/chart2/source/controller/dialogs/tp_ChartType.hxx b/chart2/source/controller/dialogs/tp_ChartType.hxx index 21ea30881b5f..ea46e2bb429f 100644 --- a/chart2/source/controller/dialogs/tp_ChartType.hxx +++ b/chart2/source/controller/dialogs/tp_ChartType.hxx @@ -72,6 +72,7 @@ protected: virtual void stateChanged( ChangingResource* pResource ); void commitToModel( const ChartTypeParameter& rParameter ); + void selectMainType(); DECL_LINK( SelectMainTypeHdl, void* ); DECL_LINK( SelectSubTypeHdl, void* ); |