Fixed some code in stack.c.

This commit is contained in:
Pietro Gagliardi 2015-04-13 14:05:07 -04:00
parent 0304df4d4e
commit e3bb32f608
1 changed files with 3 additions and 3 deletions

View File

@ -360,11 +360,11 @@ void uiStackAdd(uiControl *st, uiControl *c, int stretchy)
}
s->controls[s->len].c = c;
s->controls[s->len].stretchy = stretchy;
if (s->parent != 0)
uiControlSetParent(s->controls[s->len].c, s->parent);
s->len++;
if (s->parent != NULL)
if (s->parent != NULL) {
uiControlSetParent(s->controls[s->len].c, s->parent);
uiParentUpdate(s->parent);
}
}
void uiStackRemove(uiControl *st, uintptr_t index)