[lazarus] Bug Report Update - IDE: SnapToGrid BugFix

bugtracker at miraclec.com bugtracker at miraclec.com
Tue Dec 23 09:21:32 EST 2003



Title: IDE: SnapToGrid BugFix

Entered by: Claude Rieth

Original Description:
To obtain REAL snap to grid and not only modulo gridsize function, the following patch needs to be applied (gives behaviour similar to delphi)

controlselection.pp

function ...FindNearestSnapRight
.
.
FindNearestGridX(NearestRight);
//add the following
if NearestRight.Valid then
  NearestRight.Nearest:=NearestRight.Nearest+1;
//end add

function ...FindNearestSnapBottom
.
.
FindNearestGridY(NearestBottom);
//add the following
if NearestBottom.Valid then
  NearestBottom.Nearest:=NearestBottom.Nearest+1;
//end add






Updated by: Mattias

Status: Not a bug

Comments:
MG






More information about the Lazarus mailing list