mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 18:20:42 +02:00
LCL: Fix accessing Screen.Monitors without calling MonitorCount first
git-svn-id: trunk@28349 -
This commit is contained in:
parent
0be96fe127
commit
7038989db5
@ -704,6 +704,8 @@ end;
|
||||
|
||||
function TScreen.GetMonitor(Index: Integer): TMonitor;
|
||||
begin
|
||||
if FMonitors.Count = 0 then
|
||||
UpdateMonitors;
|
||||
Result := FMonitors[Index];
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user