drawing->max_contours);
}
- if (ol->n_points) {
- ol->contours[ol->n_contours] = ol->n_points - 1;
- ol->n_contours++;
- }
+ ol->contours[ol->n_contours] = ol->n_points - 1;
+ ol->n_contours++;
}
/*
FT_BBox bbox = drawing->cbox;
FT_Outline *ol = &drawing->outline;
- // Close the last contour
- drawing_close_shape(drawing);
-
if (drawing->library)
ass_msg(drawing->library, MSGL_V,
"Parsed drawing with %d points and %d contours", ol->n_points,
}
}
+ // Close the last contour
+ if (started)
+ drawing_close_shape(drawing);
+
drawing_finish(drawing, raw_mode);
drawing_free_tokens(drawing->tokens);
return &drawing->outline;