dont allow 0 desktops

This commit is contained in:
Dana Jansens 2003-09-19 07:30:07 +00:00
parent abde4bc153
commit 9e60c45cda

View file

@ -227,8 +227,11 @@ static void parse_desktops(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
node = node->children; node = node->children;
if ((n = parse_find_node("number", node))) if ((n = parse_find_node("number", node))) {
config_desktops_num = parse_int(doc, n); guint d = parse_int(doc, n);
if (d > 0)
config_desktops_num = d;
}
if ((n = parse_find_node("names", node))) { if ((n = parse_find_node("names", node))) {
GSList *it; GSList *it;
xmlNodePtr nname; xmlNodePtr nname;