]> Shamusworld >> Repos - ttedit/blobdiff - src/glyphpoints.cpp
Fixed a handful of bugs related to clicking and dragging
[ttedit] / src / glyphpoints.cpp
index a11b09ca3c5b82ba0221a832ab3052eefefda0cd..2e80e387e4987871dbf6c261ea608ea18b91046d 100755 (executable)
@@ -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;
 }