Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarley Acheson <harley>2018-12-27 15:58:02 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-12-27 16:21:49 +0300
commit4f98266cf6c7c40f1d4de4fb847d3d61644144de (patch)
treeb6b6b43b4dd9c8694607d4f2f7a1954d38ef0cc1 /source/blender/editors/interface/interface_layout.c
parente07b58537c05b4370cd0773cc1d63084e4c4a20a (diff)
UI: fix display of menu buttons without text and icon, and only a down arrow.
Differential Revision: https://developer.blender.org/D4123
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r--source/blender/editors/interface/interface_layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index 87927ef7643..eb1b86559bf 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -285,8 +285,8 @@ static int ui_text_icon_width(uiLayout *layout, const char *name, int icon, bool
bool variable;
const int unit_x = UI_UNIT_X * (layout->scale[0] ? layout->scale[0] : 1.0f);
- if (icon && !name[0])
- return unit_x; /* icon only */
+ if (!name[0])
+ return unit_x; /* icon only or empty name */
variable = ui_layout_variable_size(layout);