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:
parent
23467f07d9
commit
604390bbb5
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user