From 604390bbb53c54131461de01cab42985cfbe4352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 13 Mar 2006 21:40:55 +0000 Subject: [PATCH] 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 --- src/apps/workspaces/Workspaces.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/workspaces/Workspaces.cpp b/src/apps/workspaces/Workspaces.cpp index 08ed280a82..c1305791a5 100644 --- a/src/apps/workspaces/Workspaces.cpp +++ b/src/apps/workspaces/Workspaces.cpp @@ -117,7 +117,8 @@ WorkspacesPreferences::WorkspacesPreferences() // check if loaded values are valid if (screen.Frame().right >= fWindowFrame.right - && screen.Frame().bottom >= fWindowFrame.bottom) + && screen.Frame().bottom >= fWindowFrame.bottom + && fWindowFrame.right > 0 && fWindowFrame.bottom > 0) settingsValid = true; } }