Cleanup: swapped X/Y UI_UNIT

This commit is contained in:
Campbell Barton 2018-06-13 11:10:32 +02:00
parent 67e8c1e1c7
commit 5788f24337
1 changed files with 2 additions and 2 deletions

View File

@ -1888,11 +1888,11 @@ static uiBut *ui_item_menu(
if (layout->root->type == UI_LAYOUT_HEADER) { /* ugly .. */
if (force_menu) {
w += UI_UNIT_Y;
w += UI_UNIT_X;
}
else {
if (name[0]) {
w -= UI_UNIT_Y / 2;
w -= UI_UNIT_X / 2;
}
}
}