diff options
Diffstat (limited to 'editeng/source/editeng/impedit.cxx')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 6805c60de4ff..2061716107bd 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -1593,7 +1593,7 @@ void ImpEditView::ShowDDCursor( const Rectangle& rRect ) #endif if ( !pDragAndDropInfo->pBackground ) { - pDragAndDropInfo->pBackground = new VirtualDevice( *GetWindow() ); + pDragAndDropInfo->pBackground = VclPtr<VirtualDevice>::Create( *GetWindow() ); MapMode aMapMode( GetWindow()->GetMapMode() ); aMapMode.SetOrigin( Point( 0, 0 ) ); pDragAndDropInfo->pBackground->SetMapMode( aMapMode ); |