mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 13:27:35 +00:00
gdiplus: GdipTransformRegion should not fail for an empty path.
This commit is contained in:
parent
3870e5b255
commit
ec9a0d8570
2 changed files with 3 additions and 1 deletions
|
@ -1310,6 +1310,9 @@ static GpStatus transform_region_element(region_element* element, GpMatrix *matr
|
|||
}
|
||||
/* Fall-through to do the actual conversion. */
|
||||
case RegionDataPath:
|
||||
if (!element->elementdata.pathdata.path->pathdata.Count)
|
||||
return Ok;
|
||||
|
||||
stat = GdipTransformMatrixPoints(matrix,
|
||||
element->elementdata.pathdata.path->pathdata.Points,
|
||||
element->elementdata.pathdata.path->pathdata.Count);
|
||||
|
|
|
@ -381,7 +381,6 @@ static void test_getregiondata(void)
|
|||
status = GdipCreateMatrix(&matrix);
|
||||
expect(Ok, status);
|
||||
status = GdipTransformRegion(region, matrix);
|
||||
todo_wine
|
||||
expect(Ok, status);
|
||||
GdipDeleteMatrix(matrix);
|
||||
|
||||
|
|
Loading…
Reference in a new issue