diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-18 20:53:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-19 09:54:38 +0200 |
commit | 403af381c39ab8045c5ff42874fc71f3d5acf8ba (patch) | |
tree | 21235316f447b145e5cccee50631b089594e13fc /vcl | |
parent | 72eea49fc69e38b60e1d588ab9295db273e8e6dc (diff) |
cid#1490358 silence bogus Dereference after null check
Change-Id: I58734852180f345ac2242d5d89e3d7e5da2ed6e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120684
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/outdev/bitmap.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx index 50533a5a40f3..51a55befd8a7 100644 --- a/vcl/source/outdev/bitmap.cxx +++ b/vcl/source/outdev/bitmap.cxx @@ -135,8 +135,9 @@ void OutputDevice::DrawBitmap( const Point& rDestPt, const Size& rDestSize, if ( !IsDeviceOutputNecessary() ) return; - if ( !mpGraphics && !AcquireGraphics() ) + if (!mpGraphics && !AcquireGraphics()) return; + assert(mpGraphics); if ( mbInitClipRegion ) InitClipRegion(); |