gdiplus: Don't add control points to the result in GdipFlattenPath.

This commit is contained in:
Vincent Povirk 2012-02-29 13:35:28 -06:00 committed by Alexandre Julliard
parent b54d38a536
commit 1f6f84c7bb
1 changed files with 1 additions and 8 deletions

View File

@ -1207,14 +1207,7 @@ GpStatus WINGDIPAPI GdipFlattenPath(GpPath *path, GpMatrix* matrix, REAL flatnes
continue;
}
/* Bezier curve always stored as 4 points */
if((path->pathdata.Types[i-1] & PathPointTypePathTypeMask) != PathPointTypeStart){
type = (path->pathdata.Types[i] & ~PathPointTypePathTypeMask) | PathPointTypeLine;
if(!add_path_list_node(node, pt.X, pt.Y, type))
goto memout;
node = node->next;
}
/* Bezier curve */
/* test for closed figure */
if(path->pathdata.Types[i+1] & PathPointTypeCloseSubpath){