diff options
Diffstat (limited to 'svx/source/svdraw/svdovirt.cxx')
-rw-r--r-- | svx/source/svdraw/svdovirt.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdovirt.cxx b/svx/source/svdraw/svdovirt.cxx index 18d1a92125aa..202f4632c542 100644 --- a/svx/source/svdraw/svdovirt.cxx +++ b/svx/source/svdraw/svdovirt.cxx @@ -234,13 +234,13 @@ bool SdrVirtObj::supportsFullDrag() const return false; } -SdrObject* SdrVirtObj::getFullDragClone() const +SdrObjectUniquePtr SdrVirtObj::getFullDragClone() const { SdrObject& rReferencedObject = const_cast<SdrVirtObj*>(this)->ReferencedObj(); - return new SdrGrafObj( + return SdrObjectUniquePtr(new SdrGrafObj( getSdrModelFromSdrObject(), SdrDragView::GetObjGraphic(rReferencedObject), - GetLogicRect()); + GetLogicRect())); } bool SdrVirtObj::beginSpecialDrag(SdrDragStat& rDrag) const |