From 91ca3a92c54a08ad13497d7e8ac1916e7b68bbfd Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 5 Jun 2014 15:02:48 -0400 Subject: fdo#72727: Revert "fdo#68663 don't blindly force categories when there are none" This reverts commit b090cbdf82e0827234caf5969124f6631311ef35. --- xmloff/source/chart/SchXMLTableContext.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xmloff/source/chart/SchXMLTableContext.cxx b/xmloff/source/chart/SchXMLTableContext.cxx index e072deda59e0..48936b37a2e3 100644 --- a/xmloff/source/chart/SchXMLTableContext.cxx +++ b/xmloff/source/chart/SchXMLTableContext.cxx @@ -942,6 +942,16 @@ void SchXMLTableHelper::switchRangesFromOuterToInternalIfNecessary( } } + // there exist files with own data without a categories element but with row + // descriptions. The row descriptions were used as categories even without + // the categories element + if( ! bCategoriesApplied ) + { + SchXMLTools::CreateCategories( + xDataProv, xChartDoc, OUString("categories"), + 0 /* nCooSysIndex */, 0 /* nDimension */ ); + } + //i91578 display of hidden values (copy paste scenario; use hidden flag during migration to locale table upon paste ) //remove series that consist only of hidden columns Reference< chart2::XInternalDataProvider > xInternalDataProvider( xDataProv, uno::UNO_QUERY ); -- cgit