[Libreoffice-commits] core.git: oox/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 3 20:14:48 UTC 2020


 oox/source/export/chartexport.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit b9867f8b884ae8870a71b61e36f23eda91987e2a
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Apr 3 19:02:43 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Apr 3 22:14:16 2020 +0200

    crashtesting: mismatched start/end tag assert on reexport of tdf113187-1.pptx
    
    since...
    
    commit 86be3422cd55fa9e44104f1628648061bb6a3495
    Date:   Wed Dec 18 16:46:36 2019 +0100
    
        tdf#129857 Chart OOXML export: fix deleted legend entries
    
        The legend showed deleted legend entries too after export.
    
    the bare return leaves a start inserted, but no end
    
    Change-Id: If474b53ed7ff18334d095da0a8996a93a8e62e09
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91656
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index d6eaac8eedb2..ba0fdb3c94fd 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -1088,8 +1088,6 @@ void ChartExport::exportLegend( const Reference< css::chart::XChartDocument >& x
         // legendEntry
         Reference<chart2::XCoordinateSystemContainer> xCooSysContainer(mxNewDiagram, UNO_QUERY_THROW);
         const Sequence<Reference<chart2::XCoordinateSystem>> xCooSysSequence(xCooSysContainer->getCoordinateSystems());
-        if (!xCooSysSequence.hasElements())
-            return;
 
         sal_Int32 nIndex = 0;
         bool bShowLegendEntry;


More information about the Libreoffice-commits mailing list