filter/source/svg/svgexport.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit b1b3c70f1f16f02a83e23d2b0265bc97b0188a11 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Mon Jun 12 12:10:09 2023 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Mon Jun 12 15:50:07 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/+/152896 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@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;