From 89150f1bcbb71c0cc505bed1547ee0526ace3b2c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 9 Feb 2020 19:32:49 +0000 Subject: cid#1458168 silence bogus Dereference after null check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and cid#1458166 Dereference after null check cid#1458167 Dereference after null check Change-Id: I68dc7dc1bc78ed64795d353d5d0ffc15cc46b0c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88347 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/opengl/gdiimpl.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl/opengl') diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 12eb4d8a800c..4a4a19c89600 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -1656,6 +1656,7 @@ bool OpenGLSalGraphicsImpl::drawPolyLine( // MM01 need to do line dashing as fallback stuff here now const double fDotDashLength(nullptr != pStroke ? std::accumulate(pStroke->begin(), pStroke->end(), 0.0) : 0.0); const bool bStrokeUsed(0.0 != fDotDashLength); + assert(!bStrokeUsed || (bStrokeUsed && pStroke)); basegfx::B2DPolyPolygon aPolyPolygonLine; if(bStrokeUsed) -- cgit