From 78f7bd90b96ac168fdacd1e0cb0693ab3861872a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 29 Mar 2022 20:04:53 +0100 Subject: Resolves: tdf#117162 ImportDocumentHandler expects data provider to exist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit already in its ctor which changed since... commit 9009663deb8f0862f419fd99bf0b761c7f923eff Date: Sun Feb 26 22:48:06 2017 +0100 tdf#83257 [API-CHANGE] Pivot chart implementation which defers it, take a probably safely backportable approach here to fix it. Change-Id: I1863791af7ae737f337993833a9cf1429a3a8028 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132286 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- xmloff/source/chart/SchXMLChartContext.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmloff/source/chart/SchXMLChartContext.cxx') diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx index 51a7e1f05d93..331a928feb97 100644 --- a/xmloff/source/chart/SchXMLChartContext.cxx +++ b/xmloff/source/chart/SchXMLChartContext.cxx @@ -244,7 +244,7 @@ static bool lcl_hasServiceName(Reference const & xFa return std::find(aServiceNames.begin(), aServiceNames.end(), rServiceName) != aServiceNames.end(); } -static void lcl_setDataProvider(uno::Reference const & xChartDoc, OUString const & sDataPilotSource) +void setDataProvider(uno::Reference const & xChartDoc, OUString const & sDataPilotSource) { if (!xChartDoc.is()) return; @@ -392,7 +392,7 @@ void SchXMLChartContext::startFastElement( sal_Int32 /*nElement*/, uno::Reference xDoc = mrImportHelper.GetChartDocument(); uno::Reference xNewDoc(xDoc, uno::UNO_QUERY); - lcl_setDataProvider(xNewDoc, msDataPilotSource); + setDataProvider(xNewDoc, msDataPilotSource); if( aOldChartTypeName.isEmpty() ) { -- cgit