gtk: don't crash on polygon when pen is clear, brush is not clear and winding fill mode is used (#0012759)

git-svn-id: trunk@17721 -
This commit is contained in:
paul 2008-12-08 07:23:13 +00:00
parent d094e7acee
commit a3e167cc37

View File

@ -7165,6 +7165,7 @@ begin
if NumPts <= 0 then Exit(True);
DCOrigin := DevCtx.Offset;
OldNumPts:=NumPts;
// create the PointsArray, which is a copy of Points moved by the DCOrigin
// only if needed
@ -7180,8 +7181,6 @@ begin
PointArray[i].y := Points[i].y + DCOrigin.Y;
end;
OldNumPts:=NumPts;
if (Points[NumPts-1].X <> Points[0].X)
or (Points[NumPts-1].Y <> Points[0].Y)
then begin