let you specify up/down as well as top/bottom for resizerelative action - backwards compat

This commit is contained in:
Dana Jansens 2007-07-13 11:37:53 -04:00
parent 6ed8bd929d
commit 27aec195ac

View file

@ -35,9 +35,11 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node)
o->left = parse_int(doc, n); o->left = parse_int(doc, n);
if ((n = parse_find_node("right", node))) if ((n = parse_find_node("right", node)))
o->right = parse_int(doc, n); o->right = parse_int(doc, n);
if ((n = parse_find_node("top", node))) if ((n = parse_find_node("top", node)) ||
(n = parse_find_node("up", node)))
o->top = parse_int(doc, n); o->top = parse_int(doc, n);
if ((n = parse_find_node("bottom", node))) if ((n = parse_find_node("bottom", node)) ||
(n = parse_find_node("down", node)))
o->bottom = parse_int(doc, n); o->bottom = parse_int(doc, n);
return o; return o;