diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-05-12 02:33:08 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-05-12 20:04:48 +0200 |
commit | 1573315ec978b7f53a8babeb7ad44e104896209e (patch) | |
tree | 40921d62e91cc9addf199d8cfbf0b3c74b18f977 /oox | |
parent | aec34850ed7d27938bee2a3a7b8761e9eb74acdc (diff) |
export each axis only once non-deleted, related tdf#84347
Change-Id: Ia0e23faf43fd266b8314f807b77423e9a3e15797
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/chartexport.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 9c56a7e7773d..4fcf8033ee74 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -2611,6 +2611,7 @@ void ChartExport::_exportAxis( pFS->startElement( FSNS( XML_c, XML_scaling ), FSEND ); + // logBase, min, max if(GetProperty( xAxisProp, "Logarithmic" ) ) { @@ -2671,8 +2672,15 @@ void ChartExport::_exportAxis( OUString ("Visible")) >>= bVisible; } + // only export each axis only once non-deleted + bool bDeleted = std::find(maExportedAxis.begin(), + maExportedAxis.end(), rAxisIdPair.nAxisType) != maExportedAxis.end(); + + if (!bDeleted) + maExportedAxis.insert(rAxisIdPair.nAxisType); + pFS->singleElement( FSNS( XML_c, XML_delete ), - XML_val, bVisible ? "0" : "1", + XML_val, !bDeleted && bVisible ? "0" : "1", FSEND ); // FIXME: axPos, need to check the property "ReverseDirection" |