mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 16:37:54 +02:00
LCL: Use OwnerForm.Monitor when Position = poOwnerFormCenter. Issue #41377, patch by Artem Izmaylov.
This commit is contained in:
parent
7deaf87eb8
commit
bc8578231c
@ -2422,7 +2422,7 @@ begin
|
||||
Result := GetDefaultMonitor;
|
||||
poOwnerFormCenter:
|
||||
if (Owner is TCustomForm) and (GetParentForm(TCustomForm(Owner))<>Self) then
|
||||
Result := Application.MainForm.Monitor
|
||||
Result := TCustomForm(Owner).Monitor
|
||||
else
|
||||
Result := GetDefaultMonitor;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user