diff options
author | Christian Lippka <christian.lippka@sun.com> | 2010-02-02 16:46:05 +0100 |
---|---|---|
committer | Christian Lippka <christian.lippka@sun.com> | 2010-02-02 16:46:05 +0100 |
commit | e3642c3f42dcbbcb64c47cfa4ae3ce9182f911a3 (patch) | |
tree | e9e3c1be96bbfce9d050251c4617ec366a87240d /sd/source/ui/view/sdview4.cxx | |
parent | 1729ed6a9a1617a5821913501513beec86921a7e (diff) |
work on setautolayout
Diffstat (limited to 'sd/source/ui/view/sdview4.cxx')
-rw-r--r-- | sd/source/ui/view/sdview4.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx index e75f1e981ea9..06db26cc317e 100644 --- a/sd/source/ui/view/sdview4.cxx +++ b/sd/source/ui/view/sdview4.cxx @@ -123,6 +123,8 @@ SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction, const bool bIsGraphic = pPickObj->ISA( SdrGrafObj ); if( bIsGraphic || pObj->IsEmptyPresObj() ) { + SdPage* pPage = (SdPage*) pPickObj->GetPage(); + if( bIsGraphic ) { // Das Objekt wird mit der Bitmap gefuellt @@ -147,9 +149,7 @@ SdrGrafObj* View::InsertGraphic( const Graphic& rGraphic, sal_Int8& rAction, if( bUndo ) BegUndo(String(SdResId(STR_UNDO_DRAGDROP))); - SdPage* pPage = (SdPage*) pPickObj->GetPage(); - - if (pPage && pPage->GetPresObjKind(pPickObj) == PRESOBJ_GRAPHIC) + if (pPage && pPage->IsPresObj(pPickObj)) { // Neues PresObj in die Liste eintragen pNewGrafObj->SetUserCall(pPickObj->GetUserCall()); |