diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2025-04-13 11:36:05 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2025-04-14 02:48:06 +0200 |
commit | f355ddcbf2bf037263e336724829b5467b94ef40 (patch) | |
tree | bc58c8a181d68d01054c5c99d6cbb2c7304102fa /chart2/source/controller/dialogs/DialogModel.cxx | |
parent | 4575f033e58148ede7283ad2f3c4cd353e57022a (diff) |
chart2: fold isSupported* functions into ChartType
This moves isSupported* function from ChartTypeHelper to ChartType
where it better belongs to. We can access the concrete classes now
instead of accessing through UNO si this is possible to do.
Change-Id: Icc52a8ba0d8ab6d5907d7942a1834cc6f7093cce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182712
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Jenkins
Diffstat (limited to 'chart2/source/controller/dialogs/DialogModel.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/DialogModel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx index 0eb6e395c894..45456d1327b8 100644 --- a/chart2/source/controller/dialogs/DialogModel.cxx +++ b/chart2/source/controller/dialogs/DialogModel.cxx @@ -623,7 +623,7 @@ void DialogModel::setCategories( const Reference< chart2::data::XLabeledDataSequ rtl::Reference< ChartType > xFirstChartType( xDiagram->getChartTypeByIndex( 0 ) ); if( xFirstChartType.is() ) { - sal_Int32 nAxisType = ChartTypeHelper::getAxisType( xFirstChartType, 0 ); // x-axis + sal_Int32 nAxisType = xFirstChartType->getAxisType(0); // x-axis bSupportsCategories = (nAxisType == AxisType::CATEGORY); } xDiagram->setCategories( xCategories, true, bSupportsCategories ); |