LCL: Fix accessing Screen.Monitors without calling MonitorCount first

git-svn-id: trunk@28349 -
This commit is contained in:
martin 2010-11-19 17:44:02 +00:00
parent 0be96fe127
commit 7038989db5

View File

@ -704,6 +704,8 @@ end;
function TScreen.GetMonitor(Index: Integer): TMonitor;
begin
if FMonitors.Count = 0 then
UpdateMonitors;
Result := FMonitors[Index];
end;