diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-05 15:02:48 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-05 15:04:20 -0400 |
commit | 91ca3a92c54a08ad13497d7e8ac1916e7b68bbfd (patch) | |
tree | e601068060dd1a84a7732ab7ae42c803df8ce947 /xmloff | |
parent | ea2537d5ea64f4f238fa434dbc7cf53263afe78c (diff) |
fdo#72727: Revert "fdo#68663 don't blindly force categories when there are none"
This reverts commit b090cbdf82e0827234caf5969124f6631311ef35.
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLTableContext.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
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 ); |