Commit eee465964586e945b27b78fe97ba8949fdc6d536

henry 2003-04-09T10:13:45

Fixed broken contour bug

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/FTContour.cpp b/src/FTContour.cpp
index d24a0cd..edb882a 100644
--- a/src/FTContour.cpp
+++ b/src/FTContour.cpp
@@ -9,7 +9,7 @@ FTContour::FTContour( FT_Vector* contour, char* pointTags, unsigned int numberOf
     {
         char pointTag = pointTags[pointIndex];
         
-        if( pointTag == FT_Curve_Tag_On)
+        if( pointTag == FT_Curve_Tag_On || numberOfPoints < 2)
         {
             AddPoint( contour[pointIndex].x, contour[pointIndex].y);
             continue;