IDE: SnapToGrid BugFix
Original Reporter info from Mantis: >8<
-
Reporter name: Bug Import
Original Reporter info from Mantis: >8<
- Reporter name: Bug Import
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
Additional information:
Imported information
--------------------
Name: Claude Rieth
Mail: clrieth (at) team.lu
Mantis conversion info:
- Mantis ID: 147