summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorGülşah Köse <gulsah.kose@collabora.com>2019-02-28 12:40:50 +0300
committerAndras Timar <andras.timar@collabora.com>2019-02-28 14:09:41 +0100
commit740748d4470ce3f1db3fcbef729a5dc98c0b9569 (patch)
tree35f7970a59bc9ccee8aade5e3775a7c3860d0e62 /filter
parent5af5b23c8f0dde000eb025a01b07881b8f4a71e9 (diff)
tdf#115549 Check xPropset is exist.
Checks xPropset is exist for chart handling on LibreOffice Online. Change-Id: I57947fd23e089ace4df011873613c2f886770b30 Reviewed-on: https://gerrit.libreoffice.org/68493 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.cxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index b872b842b36e..6f1c759a103d 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -2025,16 +2025,19 @@ bool SVGFilter::implCreateObjects()
// - tiled bitmap: an image element is exported for each tile,
// this is really too expensive!
Reference< XPropertySet > xPropSet( xDrawPage, UNO_QUERY );
- Reference< XPropertySet > xBackground;
- xPropSet->getPropertyValue( "Background" ) >>= xBackground;
- if( xBackground.is() )
+ if( xPropSet.is() )
{
- drawing::FillStyle aFillStyle;
- bool assigned = ( xBackground->getPropertyValue( "FillStyle" ) >>= aFillStyle );
- if( assigned && aFillStyle != drawing::FillStyle_NONE
- && aFillStyle != drawing::FillStyle_BITMAP )
+ Reference< XPropertySet > xBackground;
+ xPropSet->getPropertyValue( "Background" ) >>= xBackground;
+ if( xBackground.is() )
{
- implCreateObjectsFromBackground( xDrawPage );
+ drawing::FillStyle aFillStyle;
+ bool assigned = ( xBackground->getPropertyValue( "FillStyle" ) >>= aFillStyle );
+ if( assigned && aFillStyle != drawing::FillStyle_NONE
+ && aFillStyle != drawing::FillStyle_BITMAP )
+ {
+ implCreateObjectsFromBackground( xDrawPage );
+ }
}
}
implCreateObjectsFromShapes( xDrawPage, xDrawPage );