Kaydet (Commit) c62fc469 authored tarafından Ivan Timofeev's avatar Ivan Timofeev Kaydeden (comit) Michael Meeks

fdo#38391: don't crash while dropping texture

üst 1dfe0e7c
...@@ -117,7 +117,7 @@ SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction, ...@@ -117,7 +117,7 @@ SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction,
if( mnAction == DND_ACTION_LINK && pPickObj && pPV ) if( mnAction == DND_ACTION_LINK && pPickObj && pPV )
{ {
const bool bIsGraphic = pPickObj->ISA( SdrGrafObj ); const bool bIsGraphic = pPickObj->ISA( SdrGrafObj );
if( bIsGraphic || (pObj->IsEmptyPresObj() && !bOnMaster) ) if( bIsGraphic || (pObj && pObj->IsEmptyPresObj() && !bOnMaster) )
{ {
if( IsUndoEnabled() ) if( IsUndoEnabled() )
BegUndo(String(SdResId(STR_INSERTGRAPHIC))); BegUndo(String(SdResId(STR_INSERTGRAPHIC)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment