| commit | 4241a641a433511ae9c3e1795de445a25eab14d8 | [log] |
|---|---|---|
| author | Patrick Luby <guibmacdev@gmail.com> | Mon Apr 01 10:01:03 2024 -0400 |
| committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | Tue Apr 02 01:36:49 2024 +0200 |
| tree | 087a5c4d6468486e218b8afe5ec4a1dbfba2be0a | |
| parent | 46906884b5eefb551d7d3d00420709475962df92 [diff] |
tdf#160444 check device's owner window is a nullptr Since commit 563f7077f1dbce31ff95ee8d2e8d17b629693db1, the device's owner window gets deleted before this object is deleted. Change-Id: I15dc8db60e5520c2f0e73a9a117f25af15845caf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165637 Tested-by: Jenkins Reviewed-by: Patrick Luby <guibomacdev@gmail.com> (cherry picked from commit d034036a049d6dcc8dc62a8e44c1e4befcaa25b0) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165623 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/svx/source/svdraw/svdpntv.cxx b/svx/source/svdraw/svdpntv.cxx index f092887..780227f 100644 --- a/svx/source/svdraw/svdpntv.cxx +++ b/svx/source/svdraw/svdpntv.cxx
@@ -858,7 +858,12 @@ void SdrPaintView::InvalidateAllWin(const tools::Rectangle& rRect) void SdrPaintView::InvalidateOneWin(OutputDevice& rDevice) { // do not erase background, that causes flicker (!) rDevice.GetOwnerWindow()->Invalidate(InvalidateFlags::NoErase); // tdf#160444 check device's owner window is a nullptr // Since commit 563f7077f1dbce31ff95ee8d2e8d17b629693db1, the // device's owner window gets deleted before this object is // deleted. if (rDevice.GetOwnerWindow()) rDevice.GetOwnerWindow()->Invalidate(InvalidateFlags::NoErase); } void SdrPaintView::InvalidateOneWin(OutputDevice& rDevice, const tools::Rectangle& rRect)