gdiplus: Fix an overzealous optimization.

This commit is contained in:
Vincent Povirk 2014-03-13 16:18:50 -05:00 committed by Alexandre Julliard
parent 06555a96ad
commit 9a5375989d
1 changed files with 1 additions and 1 deletions

View File

@ -2807,7 +2807,7 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
ptf[3].X = ptf[2].X + ptf[1].X - ptf[0].X;
ptf[3].Y = ptf[2].Y + ptf[1].Y - ptf[0].Y;
if (!srcwidth || !srcheight || ptf[3].X == ptf[0].X || ptf[3].Y == ptf[0].Y)
if (!srcwidth || !srcheight || (ptf[3].X == ptf[0].X && ptf[3].Y == ptf[0].Y))
return Ok;
transform_and_round_points(graphics, pti, ptf, 4);