[Libreoffice-commits] core.git: vcl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue May 18 14:30:29 UTC 2021
vcl/source/edit/texteng.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit acf309d7e45aeae87d8dee0dd2af3c9a86b9f652
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue May 18 13:01:11 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue May 18 16:29:50 2021 +0200
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 at redhat.com>
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();
More information about the Libreoffice-commits
mailing list