MG: fixed designer control moving

git-svn-id: trunk@1748 -
This commit is contained in:
lazarus 2002-06-12 12:39:36 +00:00
parent afefd015da
commit 667038fc1d

View File

@ -251,15 +251,15 @@ Begin
end;
procedure TDesigner.MoveSelection(DiffX, DiffY: integer);
var
StepX, StepY: integer;
//var
// StepX, StepY: integer;
begin
if SnapToGrid then begin
{if SnapToGrid then begin
StepX:=GridSizeX;
StepY:=GridSizeY;
DiffX:=DiffX+(StepX div 2)-(DiffX mod StepX);
DiffY:=DiffY+(StepY div 2)-(DiffY mod StepY);
end;
end;}
ControlSelection.MoveSelection(DiffX,DiffY);
end;