[Libreoffice-commits] .: sd/source

Michael Meeks michael at kemper.freedesktop.org
Sat Sep 17 11:37:20 PDT 2011


 sd/source/ui/view/sdview4.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c62fc469aa0539929a5c7f9850fb9ee954fe7198
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Fri Sep 16 17:48:47 2011 +0400

    fdo#38391: don't crash while dropping texture

diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx
index e3ea718..0874071 100644
--- a/sd/source/ui/view/sdview4.cxx
+++ b/sd/source/ui/view/sdview4.cxx
@@ -117,7 +117,7 @@ SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction,
     if( mnAction == DND_ACTION_LINK && pPickObj && pPV )
     {
         const bool bIsGraphic = pPickObj->ISA( SdrGrafObj );
-        if( bIsGraphic || (pObj->IsEmptyPresObj() && !bOnMaster) )
+        if( bIsGraphic || (pObj && pObj->IsEmptyPresObj() && !bOnMaster) )
         {
             if( IsUndoEnabled() )
                 BegUndo(String(SdResId(STR_INSERTGRAPHIC)));


More information about the Libreoffice-commits mailing list