X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fglyphpoints.cpp;h=2e80e387e4987871dbf6c261ea608ea18b91046d;hb=2b16243b0aa693d18ce49a071cdae73cadc37c4f;hp=a11b09ca3c5b82ba0221a832ab3052eefefda0cd;hpb=f8bd40b1a7da7d54a84afbc992fe289af85633a5;p=ttedit diff --git a/src/glyphpoints.cpp b/src/glyphpoints.cpp index a11b09c..2e80e38 100755 --- a/src/glyphpoints.cpp +++ b/src/glyphpoints.cpp @@ -238,6 +238,10 @@ void GlyphPoints::Clear(void) onCurve = NULL; polyEnd = NULL; numPoints = numPolys = pointsAllocated = polysAllocated = 0; + + numPolys = 1; + polyEnd = new uint16[numPolys]; + polyEnd[0] = numPoints - 1; }