X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fglyphpoints.cpp;h=2e80e387e4987871dbf6c261ea608ea18b91046d;hb=3ef71393f70213eb53db552605ae3c93f1303ee9;hp=a11b09ca3c5b82ba0221a832ab3052eefefda0cd;hpb=faaae13292af283e277b0d1480aad54a6e4a2dd6;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; }