check to make sure the workspaces is > 0 not != 0

This commit is contained in:
Dana Jansens 2002-07-22 16:15:39 +00:00
parent 3a9f075274
commit 107e0911b0

View file

@ -212,7 +212,7 @@ BScreen::BScreen(Blackbox *bb, unsigned int scrn) : ScreenInfo(bb, scrn) {
iconmenu = new Iconmenu(this);
configmenu = new Configmenu(this);
if (resource.workspaces != 0) {
if (resource.workspaces > 0) {
for (unsigned int i = 0; i < resource.workspaces; ++i) {
Workspace *wkspc = new Workspace(this, workspacesList.size());
workspacesList.push_back(wkspc);