mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 14:59:08 +02:00
lcl: less with-blocks for FPC 3.1.1
git-svn-id: trunk@50283 -
This commit is contained in:
parent
d51c479ac4
commit
8e6619ee06
@ -1259,8 +1259,6 @@ procedure TCustomForm.MoveToDefaultPosition;
|
||||
Y := (Y - Source.Top) + ABounds.Top;
|
||||
|
||||
// check that we are still in the desired monitor
|
||||
with Target.BoundsRect do
|
||||
begin
|
||||
if X + Width > ABounds.Right then
|
||||
X := ABounds.Right - Width;
|
||||
if X < ABounds.Left then
|
||||
@ -1270,7 +1268,6 @@ procedure TCustomForm.MoveToDefaultPosition;
|
||||
Y := ABounds.Bottom - Height;
|
||||
if Y < ABounds.Top then
|
||||
Y := ABounds.Top;
|
||||
end;
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user