[GB.SETTINGS]

* BUG: Don't crash if the window screen number is incorrect.

git-svn-id: svn://localhost/gambas/trunk@8146 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2017-06-21 13:31:55 +00:00
parent a8559b2552
commit dc683b3d13

View file

@ -390,8 +390,12 @@ Private Sub WriteWindow(hWindow As Window, sKey As String)
S = hWindow.Screen
X -= Screens[S].AvailableX
Y -= Screens[S].AvailableY
If S >= 0 Then
X -= Screens[S].AvailableX
Y -= Screens[S].AvailableY
Else
S = 0
Endif
Endif