reportdesign/source/core/api/ReportDefinition.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 79904d660bbb9c5c2fa9a53bba8c19b48b1770bc Author: Caolán McNamara <[email protected]> AuthorDate: Mon Oct 16 12:31:50 2023 +0100 Commit: Miklos Vajna <[email protected]> CommitDate: Mon Oct 16 16:45:52 2023 +0200 Resolves: tdf#157726 missing chart from Base report since: commit c9b5c627ccb5b70c103c559b1df38c1175efc2d1 Author: Caolán McNamara <[email protected]> Date: Wed Sep 6 10:05:23 2023 +0100 add referer to ole objects Change-Id: I9ef18bf0d734dd900bdbcac475ca15af7b15456e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158038 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index 475c59e285dc..b315077a0618 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -2009,6 +2009,12 @@ uno::Reference< uno::XInterface > SAL_CALL OReportDefinition::createInstanceWith m_pImpl->m_pObjectContainer->SwitchPersistence(xStorage); xRet = static_cast< ::cppu::OWeakObject* >(SvXMLEmbeddedObjectHelper::Create( xStorage,*this, SvXMLEmbeddedObjectHelperMode::Read ).get()); } + else if (aServiceSpecifier == "com.sun.star.drawing.OLE2Shape") + { + uno::Reference<drawing::XShape> xShape(SvxUnoDrawMSFactory::createInstanceWithArguments(aServiceSpecifier, _aArgs), uno::UNO_QUERY_THROW); + xRet = m_pImpl->m_pReportModel->createShape(aServiceSpecifier, xShape); + } + return xRet; }
