[Libreoffice-commits] core.git: sd/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jul 18 08:57:57 UTC 2019
sd/source/ui/view/sdview4.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 1291a6f9684144d2a1902ffeec3f9ac361c06efb
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jul 17 20:41:27 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jul 18 10:56:36 2019 +0200
cid#1448529 Use after free
Change-Id: I5bc3a85b7319c52e3b5d1a7e7dffcbe23cdf653c
Reviewed-on: https://gerrit.libreoffice.org/75814
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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 );
More information about the Libreoffice-commits
mailing list