diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xcl97/xcl97rec.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sc/source/filter/xcl97/xcl97rec.cxx b/sc/source/filter/xcl97/xcl97rec.cxx index 213dfe77d4ae..0f9ba1288d33 100644 --- a/sc/source/filter/xcl97/xcl97rec.cxx +++ b/sc/source/filter/xcl97/xcl97rec.cxx @@ -202,9 +202,11 @@ bool IsValidObject( const XclObj& rObj ) if (!xCooSysContainer.is()) return false; - const uno::Sequence<uno::Reference<chart2::XCoordinateSystem> > xCooSysSeq = xCooSysContainer->getCoordinateSystems(); - if (!xCooSysSeq.hasElements()) - return false; + const uno::Sequence<uno::Reference<chart2::XCoordinateSystem>> xCooSysSeq = xCooSysContainer->getCoordinateSystems(); + + // tdf#123647 Save empty charts too. + // if (!xCooSysSeq.hasElements()) + // return false; for (const auto& rCooSys : xCooSysSeq) { @@ -212,7 +214,7 @@ bool IsValidObject( const XclObj& rObj ) if (!xChartTypeCont.is()) return false; - uno::Sequence<uno::Reference<chart2::XChartType> > xChartTypeSeq = xChartTypeCont->getChartTypes(); + uno::Sequence<uno::Reference<chart2::XChartType>> xChartTypeSeq = xChartTypeCont->getChartTypes(); if (!xChartTypeSeq.hasElements()) // No chart type. Not good. return false; |