[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - xmloff/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Jan 8 13:23:53 UTC 2019


 xmloff/source/chart/SchXMLExport.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit eee044b76a2c4ef515475004a550dbd11635e5df
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Dec 30 13:10:30 2018 +0100
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Jan 8 14:23:32 2019 +0100

    tdf#112782: data-pilot-source is invalid in odf1.2 strict
    
    Change-Id: Ie24c416cb9ba8de904bf6e725a60b62ce7787596
    Reviewed-on: https://gerrit.libreoffice.org/65742
    (cherry picked from commit 18b9f23f13fd503e94d669ab80b5d2354d1817a1)
    Reviewed-on: https://gerrit.libreoffice.org/65884
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 7c8aa03b302b..e9e755dde3d1 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -1202,7 +1202,7 @@ void SchXMLExportHelper_Impl::parseDocument( Reference< chart::XChartDocument >
         }
 
         Reference<chart2::data::XPivotTableDataProvider> xPivotTableDataProvider(xNewDoc->getDataProvider(), uno::UNO_QUERY);
-        if (xPivotTableDataProvider.is())
+        if (xPivotTableDataProvider.is() && nCurrentODFVersion > SvtSaveOptions::ODFVER_012)
         {
             OUString sPivotTableName = xPivotTableDataProvider->getPivotTableName();
             mrExport.AddAttribute(XML_NAMESPACE_LO_EXT, XML_DATA_PILOT_SOURCE, sPivotTableName);


More information about the Libreoffice-commits mailing list