oox/source/shape/ShapeContextHandler.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit e4963099d338da56c7f325b6ed9b8ae71f54968f
Author:     Noel Grandin <[email protected]>
AuthorDate: Thu Feb 12 10:06:43 2026 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Thu Feb 12 10:05:21 2026 +0100

    simply theme parsing in ShapeContextHandler
    
    no need to go via a XFastSAXSerializable when we are just
    going to handle the data to a FragmentHandler.
    
    Change-Id: If25b1def6f1377ae0511a757baef3073b846547b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199236
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/oox/source/shape/ShapeContextHandler.cxx 
b/oox/source/shape/ShapeContextHandler.cxx
index aff8ccbd9861..68dad0f0df51 100644
--- a/oox/source/shape/ShapeContextHandler.cxx
+++ b/oox/source/shape/ShapeContextHandler.cxx
@@ -313,8 +313,7 @@ void SAL_CALL ShapeContextHandler::startFastElement
                 mpThemePtr = std::make_shared<Theme>();
                 auto pTheme = std::make_shared<model::Theme>();
                 mpThemePtr->setTheme(pTheme);
-                uno::Reference<xml::sax::XFastSAXSerializable> 
xDoc(mxShapeFilterBase->importFragment(aThemeFragmentPath), 
uno::UNO_QUERY_THROW);
-                mxShapeFilterBase->importFragment(new 
ThemeFragmentHandler(*mxShapeFilterBase, aThemeFragmentPath, *mpThemePtr, 
*pTheme), xDoc);
+                mxShapeFilterBase->importFragment(new 
ThemeFragmentHandler(*mxShapeFilterBase, aThemeFragmentPath, *mpThemePtr, 
*pTheme));
                 mxShapeFilterBase->setCurrentTheme(mpThemePtr);
             }
         }

Reply via email to