From 92ab4166ecc74eff8675e7da319c3249e8c285d0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 14 Sep 2024 21:07:33 +0100 Subject: Resolves: tdf#162958 When using formula with Impress Style is lost MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit regression since: commit 125cf1525361c6cd699574f60b4cf12868188568 CommitDate: Thu Sep 7 08:54:56 2023 +0200 add referer to ole objects where these service names changed there should be listed here too so they get the same post-create setup they do on the bare "no-argument" route. Change-Id: I21fb9a92f63cac46e4a0fd46f7c2b8d2956ec829 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173377 Reviewed-by: Caolán McNamara Tested-by: Jenkins --- sd/source/ui/unoidl/unomodel.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sd/source') diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 797ec3495982..1aa5d744c85d 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -1243,7 +1243,11 @@ SdXImpressDocument::createInstanceWithArguments( { OUString arg; if ((ServiceSpecifier == "com.sun.star.drawing.GraphicObjectShape" + || ServiceSpecifier == "com.sun.star.drawing.AppletShape" + || ServiceSpecifier == "com.sun.star.drawing.FrameShape" + || ServiceSpecifier == "com.sun.star.drawing.OLE2Shape" || ServiceSpecifier == "com.sun.star.drawing.MediaShape" + || ServiceSpecifier == "com.sun.star.drawing.PluginShape" || ServiceSpecifier == "com.sun.star.presentation.MediaShape") && Arguments.getLength() == 1 && (Arguments[0] >>= arg)) { -- cgit