Skip to content

Commit

Permalink
Fixed some code in stack.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
andlabs committed Apr 13, 2015
1 parent 0304df4 commit e3bb32f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions new/stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e3bb32f

Please sign in to comment.