diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-12 12:10:09 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-06-12 13:25:43 +0200 |
commit | 98f9c933e4fc286b9bc737783c0906c6abc61d2c (patch) | |
tree | 07d0b4ceb6191ba40df72942e567650ba7ff8a64 /filter | |
parent | f1633dc0e06b046a9ca0f2fa53e7858be1584ffb (diff) |
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.meeks@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgexport.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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; |