diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-09-15 12:12:12 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-09-15 12:38:44 +0200 |
commit | ba37fb02c298aa79fd0418b82d7b44930d047b8c (patch) | |
tree | 6e4a76df3542d5033c95bf3b65dbc56e82d41c1f /oox/source | |
parent | 721f1eca1856ab42d1752bca22c87d87713cf1e7 (diff) |
Ensure we export correct label placement value for clustered bar charts
This is similar to 7b8073906adca8dae24c04a23708a3f3d582218f (Ensure we
export correct labal placement value for percent/stacked charts.,
2014-08-07), in case a clustered bar chart has a top placement ("t" in
OOXML), then MSO complains as well.
Change-Id: Iffd991127784e0e732f6ae55de956a328a3a53e5
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/export/chartexport.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 8fe0a8736e42..46290053755c 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -446,6 +446,7 @@ ChartExport::ChartExport( sal_Int32 nXmlNamespace, FSHelperPtr pFS, Reference< f , mbIs3DChart( false ) , mbStacked(false) , mbPercent(false) + , mbClustered(false) { } @@ -2670,7 +2671,7 @@ void ChartExport::exportDataLabels( aParam.mbExport = false; break; case chart::TYPEID_BAR: - if (mbStacked || mbPercent) + if (mbStacked || mbPercent || mbClustered) { aParam.maAllowedValues.clear(); aParam.maAllowedValues.insert(css::chart::DataLabelPlacement::CENTER); @@ -2816,7 +2817,10 @@ void ChartExport::exportGrouping( bool isBar ) else { if( isBar && !isDeep3dChart() ) + { grouping = "clustered"; + mbClustered = true; + } else grouping = "standard"; } |