summaryrefslogtreecommitdiff
path: root/vcl/source/edit/texteng.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-05-18 13:01:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-05-18 16:29:50 +0200
commitacf309d7e45aeae87d8dee0dd2af3c9a86b9f652 (patch)
tree3e8637edefb1509a4fe356a33e8d77e4ea929e5c /vcl/source/edit/texteng.cxx
parentc02295e5c4026e3093612a93fb4a28d94755c55f (diff)
cid#1484904 Dereference after null check
Change-Id: I4680b1d45eb9770b1891fa23e88be0d18ba47658 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115741 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/edit/texteng.cxx')
-rw-r--r--vcl/source/edit/texteng.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index 5c6926d09129..41885eecc4d5 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -1879,7 +1879,7 @@ void TextEngine::ImpPaint( OutputDevice* pOutDev, const Point& rStartPos, tools:
if ( !IsFormatted() )
FormatDoc();
- vcl::Window* const pOutWin = pOutDev ? pOutDev->GetOwnerWindow() : nullptr;
+ vcl::Window* const pOutWin = pOutDev->GetOwnerWindow();
const bool bTransparent = (pOutWin && pOutWin->IsPaintTransparent());
tools::Long nY = rStartPos.Y();