diff --git a/chart2/source/tools/ExplicitCategoriesProvider.cxx b/chart2/source/tools/ExplicitCategoriesProvider.cxx index c5e32760f6b3..d543b2b365fb 100644 --- a/chart2/source/tools/ExplicitCategoriesProvider.cxx +++ b/chart2/source/tools/ExplicitCategoriesProvider.cxx @@ -32,6 +32,7 @@ #include #include +#include #include #include #include @@ -108,11 +109,18 @@ ExplicitCategoriesProvider::ExplicitCategoriesProvider( const rtl::Reference< Ba if( !aSeries.empty() ) { const rtl::Reference< DataSeries >& xSeriesSource = aSeries.front(); - OUString aStringDummy; - bool bDummy; - uno::Sequence< sal_Int32 > aSeqDummy; - DataSourceHelper::readArguments( xDataProvider->detectArguments( xSeriesSource), - aStringDummy, aSeqDummy, bSeriesUsesColumns, bDummy, bDummy ); + for(const auto& rArgument : xDataProvider->detectArguments( xSeriesSource)) + { + if ( rArgument.Name == "DataRowSource" ) + { + css::chart::ChartDataRowSource eRowSource; + if( rArgument.Value >>= eRowSource ) + { + bSeriesUsesColumns = (eRowSource == css::chart::ChartDataRowSource_COLUMNS); + break; + } + } + } } if( bSeriesUsesColumns ) m_aSplitCategoriesList = comphelper::sequenceToContainer>>(aColumns);