Cleanup: ui align header

This commit is contained in:
2015-11-07 17:36:10 +11:00
parent dcc41c4f78
commit 6208ca25fa
3 changed files with 7 additions and 4 deletions

View File

@@ -3015,8 +3015,11 @@ static void ui_item_align(uiLayout *litem, short nr)
#ifndef USE_UIBUT_SPATIAL_ALIGN
if (ui_but_can_align(bitem->but))
#endif
if (!bitem->but->alignnr)
{
if (!bitem->but->alignnr) {
bitem->but->alignnr = nr;
}
}
}
else if (item->type == ITEM_LAYOUT_ABSOLUTE) {
/* pass */