The saved position is now also invalid if it is less than zero.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16775 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-03-13 21:40:55 +00:00
parent 23467f07d9
commit 604390bbb5

View File

@ -117,7 +117,8 @@ WorkspacesPreferences::WorkspacesPreferences()
// check if loaded values are valid // check if loaded values are valid
if (screen.Frame().right >= fWindowFrame.right if (screen.Frame().right >= fWindowFrame.right
&& screen.Frame().bottom >= fWindowFrame.bottom) && screen.Frame().bottom >= fWindowFrame.bottom
&& fWindowFrame.right > 0 && fWindowFrame.bottom > 0)
settingsValid = true; settingsValid = true;
} }
} }