filter/source/svg/svgexport.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 98f9c933e4fc286b9bc737783c0906c6abc61d2c
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Jun 12 12:10:09 2023 +0100
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Mon Jun 12 13:25:43 2023 +0200

    cannot export selected fontwork in writer to svg
    
    Background property isn't supported
    
    Change-Id: Ic8c5ff979d16a328fece5b4b2f87c85348606bce
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152911
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>
    Tested-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index 3114d80b592a..8810c0e51a6a 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -2329,7 +2329,8 @@ bool SVGFilter::implCreateObjects()
             if( xPropSet.is() )
             {
                 Reference< XPropertySet > xBackground;
-                xPropSet->getPropertyValue( "Background" ) >>= xBackground;
+                if 
(xPropSet->getPropertySetInfo()->hasPropertyByName("Background"))
+                    xPropSet->getPropertyValue( "Background" ) >>= xBackground;
                 if( xBackground.is() )
                 {
                     drawing::FillStyle aFillStyle;

Reply via email to