LazReport: Snap to guide while drawing one inserted object.

git-svn-id: trunk@62443 -
This commit is contained in:
jesus 2019-12-25 02:46:24 +00:00
parent f98cd17789
commit 7d87865122

View File

@ -2597,13 +2597,17 @@ begin
Moved := True;
w := 2;
if FDesigner.ShowGuides then begin
if FDesigner.ShowGuides then
begin
if not down then
// normal snap guide to any object
fGuides.FindGuides(x, y)
else begin
if Cursor = crPencil then
// normal snap to guide for drawing lines
else
begin
if (Cursor = crPencil) or
(Cursor = crCross)
then
// normal snap to guide for inserting objects or drawing lines
fGuides.FindGuides(x, y);
end;
end;