[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:
parent
a8559b2552
commit
dc683b3d13
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue