mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 09:38:12 +02:00
LCL-GTK2: Don't change parameters of method TGtk2WidgetSet.Polyline. Use a temp variable. Issue #31205, patch from C Western.
git-svn-id: trunk@53908 -
This commit is contained in:
parent
783241539d
commit
c993ba74ff
@ -6866,7 +6866,7 @@ var
|
||||
|
||||
i: integer;
|
||||
PointArray: PGDKPoint;
|
||||
DCOrigin: TPoint;
|
||||
DCOrigin, P: TPoint;
|
||||
begin
|
||||
if not IsValidDC(DC) then Exit(False);
|
||||
|
||||
@ -6879,9 +6879,11 @@ begin
|
||||
for i:=0 to NumPts-1 do
|
||||
begin
|
||||
if DevCtx.HasTransf then
|
||||
Points[I] := DevCtx.TransfPointIndirect(Points[I]);
|
||||
PointArray[i].x := Points[i].x + DCOrigin.X;
|
||||
PointArray[i].y := Points[i].y + DCOrigin.Y;
|
||||
P := DevCtx.TransfPointIndirect(Points[I])
|
||||
else
|
||||
P := Points[i];
|
||||
PointArray[i].x := P.x + DCOrigin.X;
|
||||
PointArray[i].y := P.y + DCOrigin.Y;
|
||||
end;
|
||||
|
||||
// draw line
|
||||
|
Loading…
Reference in New Issue
Block a user