From: Dana Jansens Date: Mon, 22 Jul 2002 16:15:39 +0000 (+0000) Subject: check to make sure the workspaces is > 0 not != 0 X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=107e0911b05c63450d86bb71fd9fc7de4b74acf6;p=chaz%2Fopenbox check to make sure the workspaces is > 0 not != 0 --- diff --git a/src/Screen.cc b/src/Screen.cc index 378d61e1..d92973b3 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -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);