diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/quartz/salgdicommon.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx index 2f36c76d4303..73cd294104ce 100644 --- a/vcl/quartz/salgdicommon.cxx +++ b/vcl/quartz/salgdicommon.cxx @@ -1714,13 +1714,10 @@ namespace { CGPoint* makeCGptArray(sal_uInt32 nPoints, const SalPoint* pPtAry) { CGPoint *CGpoints = new CGPoint[nPoints]; - if ( CGpoints ) + for(sal_uLong i=0;i<nPoints;i++) { - for(sal_uLong i=0;i<nPoints;i++) - { - CGpoints[i].x = pPtAry[i].mnX; - CGpoints[i].y = pPtAry[i].mnY; - } + CGpoints[i].x = pPtAry[i].mnX; + CGpoints[i].y = pPtAry[i].mnY; } return CGpoints; } |