LazReport: snap resizing object(s) to guides.

git-svn-id: trunk@62447 -
This commit is contained in:
jesus 2019-12-25 19:04:40 +00:00
parent aaed1a2696
commit 0ff93d16af

View File

@ -2603,13 +2603,14 @@ begin
// normal snap guide to any object // normal snap guide to any object
fGuides.FindGuides(x, y) fGuides.FindGuides(x, y)
else else
begin if (Cursor = crPencil) or
if (Cursor = crPencil) or (Cursor = crCross) then
(Cursor = crCross) // normal snap to guide for inserting objects or drawing lines
then fGuides.FindGuides(x, y)
// normal snap to guide for inserting objects or drawing lines else
fGuides.FindGuides(x, y); if (TfrDesignerForm(frDesigner).SelNum >= 1) then
end; // don't create a guide for the object(s) being resized
fGuides.FindGuides(x, y, true);
end; end;
if FirstChange and Down and not RFlag then if FirstChange and Down and not RFlag then
@ -2950,6 +2951,8 @@ begin
//resizing //resizing
if Down and (Mode = mdSelect) and (TfrDesignerForm(frDesigner).SelNum = 1) and (Cursor <> crDefault) then if Down and (Mode = mdSelect) and (TfrDesignerForm(frDesigner).SelNum = 1) and (Cursor <> crDefault) then
begin begin
if FDesigner.ShowGuides then
fGuides.SnapToGuide(x, y);
kx := x - LastX; kx := x - LastX;
ky := y - LastY; ky := y - LastY;
if FDesigner.GridAlign and not GridCheck then begin if FDesigner.GridAlign and not GridCheck then begin