View Issue Details

IDProjectCategoryView StatusLast Update
0000147Lazaruspublic2003-12-23 09:35
ReporterBug ImportAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product VersionProduct Build 
Target VersionFixed in Version 
Summary0000147: IDE: SnapToGrid BugFix
DescriptionTo 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 InformationImported information
--------------------
Name: Claude Rieth
Mail: clrieth (at) team.lu
TagsNo tags attached.
Fixed in Revision
LazTarget
WidgetsetGTK, Win32/Win64
Attached Files

Activities

Bug Import

2003-12-23 09:35

reporter   ~0000127

MG

Issue History

Date Modified Username Field Change
2003-11-09 00:00 Bug Import New Issue
2003-11-09 00:00 Bug Import Widgetset => GTK, Win32
2003-12-23 09:35 Bug Import Note Added: 0000127
2003-12-23 09:35 Bug Import Status new => closed
2003-12-23 09:35 Bug Import Resolution open => no change required