xmloff/source/draw/shapeexport.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3b581a962c8ce90bfa79a7ec3470a048fa525e08
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Oct 9 19:57:39 2025 +0100
Commit:     Miklos Vajna <[email protected]>
CommitDate: Fri Oct 10 11:36:05 2025 +0200

    we can use GetMimeTypeForXGraphic directly
    
    Change-Id: I6b198cf2d4802f787ba4527dc78dd4668b863fa1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192125
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>

diff --git a/xmloff/source/draw/shapeexport.cxx 
b/xmloff/source/draw/shapeexport.cxx
index db0448342990..fdbd763ae403 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -85,6 +85,7 @@
 #include <com/sun/star/util/XCloseable.hpp>
 
 #include <comphelper/classids.hxx>
+#include <comphelper/graphicmimetype.hxx>
 #include <comphelper/processfactory.hxx>
 #include <comphelper/propertyvalue.hxx>
 #include <comphelper/sequenceashashmap.hxx>
@@ -249,8 +250,7 @@ uno::Reference<lang::XComponent> 
XMLShapeExport::checkForPDFShapeReplacement(con
     uno::Reference<graphic::XGraphic> xGraphic;
     xPropSet->getPropertyValue(u"Graphic"_ustr) >>= xGraphic;
 
-    OUString sOutMimeType;
-    GetExport().GetGraphicMimeTypeFromStream(xGraphic, sOutMimeType);
+    OUString sOutMimeType = 
comphelper::GraphicMimeTypeHelper::GetMimeTypeForXGraphic(xGraphic);
 
     if (sOutMimeType != "application/pdf")
         return nullptr;

Reply via email to