Oops... Forgive me for my haste. Previous patch was incorrect. :( I have
created the new one.
From 094af00979359279641b8b58c1540c5df2f0f1b0 Mon Sep 17 00:00:00 2001
From: Ivan Timofeev <[email protected]>
Date: Fri, 16 Sep 2011 17:48:47 +0400
Subject: [PATCH] fdo#38391: don't crash while dropping texture
---
sd/source/ui/view/sdview4.cxx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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)));
--
1.7.6.3
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice