fdo#38391: don't crash while dropping texture
This commit is contained in:
parent
1dfe0e7c8d
commit
c62fc469aa
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
||||
|
|
Loading…
Reference in a new issue