fdo#38391: don't crash while dropping texture

This commit is contained in:
Ivan Timofeev 2011-09-16 17:48:47 +04:00 committed by Michael Meeks
parent 1dfe0e7c8d
commit c62fc469aa

View file

@ -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)));