From 1291a6f9684144d2a1902ffeec3f9ac361c06efb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 17 Jul 2019 20:41:27 +0100 Subject: cid#1448529 Use after free MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5bc3a85b7319c52e3b5d1a7e7dffcbe23cdf653c Reviewed-on: https://gerrit.libreoffice.org/75814 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sd/source/ui/view/sdview4.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sd/source') diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx index 9d4bc87a1967..cb50639b2593 100644 --- a/sd/source/ui/view/sdview4.cxx +++ b/sd/source/ui/view/sdview4.cxx @@ -559,8 +559,8 @@ IMPL_LINK_NOARG(View, DropInsertFileHdl, Timer *, void) nOptions |= SdrInsertFlags::DONTMARK; } - InsertObjectAtView( pOleObj, *GetSdrPageView(), nOptions ); - pOleObj->SetLogicRect( aRect ); + if (InsertObjectAtView( pOleObj, *GetSdrPageView(), nOptions )) + pOleObj->SetLogicRect( aRect ); aSz.Width = aRect.GetWidth(); aSz.Height = aRect.GetHeight(); xObj->setVisualAreaSize( nAspect,aSz ); -- cgit