summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2015-01-19 22:33:29 +0100
committerLuboš Luňák <l.lunak@collabora.com>2015-01-19 22:48:09 +0100
commit168315e3b79f89f6e373d23419490d41f3bf5cc8 (patch)
tree8527982a6f1418c6cf4e30d884dc0813e404a10f /vcl/opengl
parentac8fdc7dd4f8ff8d896402838323c65e12c03e7c (diff)
remove needless loop
Change-Id: Iaec5aa5bd353c888a3b35a277a3618c29d9cbd67
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/gdiimpl.cxx5
1 files changed, 1 insertions, 4 deletions
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;