From 168315e3b79f89f6e373d23419490d41f3bf5cc8 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Mon, 19 Jan 2015 22:33:29 +0100 Subject: remove needless loop Change-Id: Iaec5aa5bd353c888a3b35a277a3618c29d9cbd67 --- vcl/opengl/gdiimpl.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'vcl/opengl') diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 8a40f1a09b43..6e9d15635bdb 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -1172,10 +1172,7 @@ void OpenGLSalGraphicsImpl::drawPolyPolygon( sal_uInt32 nPoly, const sal_uInt32* if( UseSolid( mnFillColor ) ) { if( nPoly == 1 ) - { - for( sal_uInt32 i = 0; i < nPoly; i++ ) - DrawPolygon( pPoints[i], pPtAry[i] ); - } + DrawPolygon( pPoints[ 0 ], pPtAry[ 0 ] ); else { basegfx::B2DPolyPolygon polyPolygon; -- cgit