sd/source/ui/unoidl/unomodel.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 508b4ef89dcdd5b2d07e0b7421728b0fb4927f0c
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat Sep 14 21:07:33 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Sep 20 21:04:08 2024 +0200

    Resolves: tdf#162958 When using formula with Impress Style is lost
    
    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/+/173385
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index dd9d5739555b..305ed299b639 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -1115,7 +1115,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))
     {

Reply via email to