summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@collabora.com>2014-03-07 13:36:50 +0530
committerMuthu Subramanian <sumuthu@collabora.com>2014-03-07 13:36:50 +0530
commit6b22520691a997bd14d14eba3a3e7a92ecea41b3 (patch)
tree7cbe1fec15dd1eed50cc12d8bd5b117ae7fbada4
parentfe69621b0005a3399c278971806940a09958848a (diff)
n#821567: Use BitmapURL only if its valid.
-rw-r--r--svx/source/xoutdev/xattrbmp.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx
index 6f6fe947363a..77db862bce16 100644
--- a/svx/source/xoutdev/xattrbmp.cxx
+++ b/svx/source/xoutdev/xattrbmp.cxx
@@ -720,8 +720,11 @@ bool XFillBitmapItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt
if( bSetURL )
{
GraphicObject aGrafObj( GraphicObject::CreateGraphicObjectFromURL( aURL ) );
- XOBitmap aBMP( aGrafObj );
- SetBitmapValue( aBMP );
+ if( aGrafObj.GetType() != GRAPHIC_NONE )
+ {
+ XOBitmap aBMP( aGrafObj );
+ SetBitmapValue( aBMP );
+ }
}
if( bSetBitmap )
{