summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ea9e6964590f..87fbbdee425d 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -2029,16 +2029,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 );
+ }
}
}
if( xDrawPage.is() )