diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-19 04:29:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-19 04:29:51 +0300 |
commit | 2f5a79b390627e6f75d97eb7c2099dbe3d566fb5 (patch) | |
tree | 3b444a4cbba3e12e590cb30d1427c839daca0c8d | |
parent | 2299e6d9bad4f707110cdf8e1b5affd6f1088826 (diff) |
Fix button label access returning empty label
The check the buttons string has content (not just that it's non-NULL).
-rw-r--r-- | source/blender/editors/interface/interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 9612eab0025..4b1bdc4a534 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -6324,7 +6324,7 @@ void UI_but_string_info_get(bContext *C, uiBut *but, ...) char *tmp = NULL; if (type == BUT_GET_LABEL) { - if (but->str) { + if (but->str && but->str[0]) { const char *str_sep; size_t str_len; |