Kaydet (Commit) 740748d4 authored tarafından Gülşah Köse's avatar Gülşah Köse Kaydeden (comit) Andras Timar

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/68493Reviewed-by: 's avatarAndras Timar <andras.timar@collabora.com>
Tested-by: 's avatarAndras Timar <andras.timar@collabora.com>
üst 5af5b23c
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment