You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/02/27 15:16:54 UTC

svn commit: r1450781 - /openoffice/trunk/main/vcl/aqua/source/gdi/salgdiutils.cxx

Author: hdu
Date: Wed Feb 27 14:16:54 2013
New Revision: 1450781

URL: http://svn.apache.org/r1450781
Log:
WaE: fix allocation of an CGPoint array

Modified:
    openoffice/trunk/main/vcl/aqua/source/gdi/salgdiutils.cxx

Modified: openoffice/trunk/main/vcl/aqua/source/gdi/salgdiutils.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/aqua/source/gdi/salgdiutils.cxx?rev=1450781&r1=1450780&r2=1450781&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/aqua/source/gdi/salgdiutils.cxx (original)
+++ openoffice/trunk/main/vcl/aqua/source/gdi/salgdiutils.cxx Wed Feb 27 14:16:54 2013
@@ -253,7 +253,7 @@ void AquaSalGraphics::RefreshRect(float 
 
 CGPoint* AquaSalGraphics::makeCGptArray(sal_uLong nPoints, const SalPoint*  pPtAry)
 {
-    CGPoint *CGpoints = new (CGPoint[nPoints]);
+    CGPoint *CGpoints = new CGPoint[ nPoints];
     if ( CGpoints ) 
       {
         for(sal_uLong i=0;i<nPoints;i++)