mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 05:36:10 +02:00
MG: fixed designer control moving
git-svn-id: trunk@1748 -
This commit is contained in:
parent
afefd015da
commit
667038fc1d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user