summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2011-09-16 17:48:47 +0400
committerMichael Meeks <michael.meeks@novell.com>2011-09-17 19:35:50 +0100
commitc62fc469aa0539929a5c7f9850fb9ee954fe7198 (patch)
tree36b14c98eb3c0cad4d4373ee38c1d1b77655f448 /sd
parent1dfe0e7c8d1a8c4d67a14c2c79362af09c0a56cf (diff)
fdo#38391: don't crash while dropping texture
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/sdview4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx
index e3ea7182ece5..0874071b9c85 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)));