diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-30 06:43:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-30 06:45:05 +0300 |
commit | 6462ea2a8d7d39043e94f622397ce63e78c478ee (patch) | |
tree | dbe4394d41d4d368639fc3b6da7068e2000293db /source/blender | |
parent | 7b347b225adc2a3835aed51299a870e901fb5ecc (diff) |
UI: center align icon-only pull-down menus
Resolve issue noted in D5482, texture slots '+' icon for example
was noticeably off-center.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index fed35ccff59..6c856a0e8dd 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -2771,7 +2771,7 @@ static uiBut *ui_item_menu(uiLayout *layout, } else if (icon) { but = uiDefIconMenuBut(block, func, arg, icon, 0, 0, w, h, tip); - if (force_menu) { + if (force_menu && name[0]) { UI_but_drawflag_enable(but, UI_BUT_ICON_LEFT); } } |