gdi32: Ignore contours containing one point in get_glyph_outline function.

This commit is contained in:
Piotr Caban 2012-11-13 16:51:29 +01:00 committed by Alexandre Julliard
parent 95f3c6402a
commit b696558f04
1 changed files with 6 additions and 0 deletions

View File

@ -6377,6 +6377,12 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
}
for(contour = 0; contour < outline->n_contours; contour++) {
/* Ignore contours containing one point */
if(point == outline->contours[contour]) {
point++;
continue;
}
pph_start = needed;
pph = (TTPOLYGONHEADER *)((char *)buf + needed);
first_pt = point;