[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - svx/source

Muthu Subramanian sumuthu at collabora.com
Wed Mar 12 11:07:37 PDT 2014


 svx/source/xoutdev/xattrbmp.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 910716696fa7bd0b87381121b10668dcb7953661
Author: Muthu Subramanian <sumuthu at collabora.com>
Date:   Wed Mar 12 16:46:50 2014 +0530

    n#821567: Use BitmapURL only if its valid.
    
    Ported from: bf2ff0468e06770f9320c652a2332f7ec137d061
    
    Change-Id: I7464fcba352798a686fc0563dd023feac5234dbf
    Reviewed-on: https://gerrit.libreoffice.org/8547
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/svx/source/xoutdev/xattrbmp.cxx b/svx/source/xoutdev/xattrbmp.cxx
index d2a5566..a24fce6 100644
--- a/svx/source/xoutdev/xattrbmp.cxx
+++ b/svx/source/xoutdev/xattrbmp.cxx
@@ -605,7 +605,9 @@ bool XFillBitmapItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt
     }
     if( bSetURL )
     {
-        maGraphicObject  = GraphicObject::CreateGraphicObjectFromURL(aURL);
+        GraphicObject aGraphicObject  = GraphicObject::CreateGraphicObjectFromURL(aURL);
+        if( aGraphicObject.GetType() != GRAPHIC_NONE )
+            maGraphicObject = aGraphicObject;
     }
     if( bSetBitmap )
     {


More information about the Libreoffice-commits mailing list