vcl/source/gdi/gdimtf.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 12b6cd0233173323ba0a8dbbc3e1197b92336124 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue May 18 11:41:31 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue May 18 17:37:26 2021 +0200 cid#1484905 Dereference before null check Change-Id: Ia69cb70cda1ba5bc56bec7d480db1f89b7b9200d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115734 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx index fd7e13bc30df..0aea5f0513bd 100644 --- a/vcl/source/gdi/gdimtf.cxx +++ b/vcl/source/gdi/gdimtf.cxx @@ -392,7 +392,7 @@ bool GDIMetaFile::ImplPlayWithRenderer( OutputDevice* pOut, const Point& rPos, S Size rDestSize( pOut->LogicToPixel( rLogicDestSize ) ); - const vcl::Window* win = pOut ? pOut->GetOwnerWindow() : nullptr; + const vcl::Window* win = pOut->GetOwnerWindow(); if (!win) win = Application::GetActiveTopWindow(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits