diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-18 11:41:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-18 17:37:26 +0200 |
commit | 12b6cd0233173323ba0a8dbbc3e1197b92336124 (patch) | |
tree | c4b81715e5f3bc0a54cd9d56be0f09ddfc128c76 /vcl/source/gdi/gdimtf.cxx | |
parent | 0a32630d11ebdb8b8218faa066c72582ef2f300d (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/gdi/gdimtf.cxx')
-rw-r--r-- | vcl/source/gdi/gdimtf.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |