From af26bb77d2dd63fd6d5473c234f746b3b38dc3f6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 21 Nov 2014 09:24:11 +0000 Subject: coverity#1255388 Division or modulo by float zero and coverity#1255387 Division or modulo by float zero Change-Id: I86c6d5874a7a2c2eecefe7f786edff89ff50ffbf --- vcl/opengl/gdiimpl.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 3929d63b3aaf..1abc86e11098 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -727,6 +727,9 @@ void OpenGLSalGraphicsImpl::DrawTransformedTexture( const basegfx::B2DPoint& rX, const basegfx::B2DPoint& rY ) { + if (!rTexture.GetWidth() || !rTexture.GetHeight()) + return; + const basegfx::B2DVector aXRel = rX - rNull; const basegfx::B2DVector aYRel = rY - rNull; const float aValues[] = { -- cgit