From eca392e2cf86ff1d4419fe61f1d262c8ee13e6e3 Mon Sep 17 00:00:00 2001 From: Ingrid Halama Date: Wed, 10 Feb 2010 11:34:32 +0100 Subject: [PATCH] chartmultiline: #i82971# complex categories (#i109100# listbox for categories is empty in YAxis format dialog) --- chart2/source/tools/DiagramHelper.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/chart2/source/tools/DiagramHelper.cxx b/chart2/source/tools/DiagramHelper.cxx index 60dcf1c00557..cd03fc8743bf 100644 --- a/chart2/source/tools/DiagramHelper.cxx +++ b/chart2/source/tools/DiagramHelper.cxx @@ -1016,17 +1016,9 @@ Sequence< rtl::OUString > DiagramHelper::getExplicitSimpleCategories( uno::Reference< frame::XModel > xChartModel( xChartDoc, uno::UNO_QUERY ); if(xChartModel.is()) { - uno::Reference< chart2::XDiagram > xDia( xChartDoc->getFirstDiagram() ); uno::Reference< chart2::XCoordinateSystem > xCooSys( ChartModelHelper::getFirstCoordinateSystem( xChartModel ) ); - if(xDia.is()) - { - Reference< data::XLabeledDataSequence > xCategories( DiagramHelper::getCategoriesFromDiagram( xDia ) ); - if( xCategories.is() ) - { - ExplicitCategoriesProvider aExplicitCategoriesProvider( xCooSys, xChartModel ); - aRet = aExplicitCategoriesProvider.getSimpleCategories(); - } - } + ExplicitCategoriesProvider aExplicitCategoriesProvider( xCooSys, xChartModel ); + aRet = aExplicitCategoriesProvider.getSimpleCategories(); } return aRet; }