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:
authorDalai Felinto <dalai@blender.org>2020-11-19 12:43:46 +0300
committerDalai Felinto <dalai@blender.org>2020-11-19 12:43:46 +0300
commit71c6c95aeca44fcc73237df14180b66d2d6d86e6 (patch)
tree067e6c634b1995ab08425ac9d43b583272e05d82 /source/blender/editors/interface
parente5df87b1b9dbba755fa73ccc90d2f6acedc1ad37 (diff)
parent256e77c987d2d8a3c1fc672eb75b3efe32441789 (diff)
Merge remote-tracking branch 'origin/blender-v2.91-release'
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface_query.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_query.c b/source/blender/editors/interface/interface_query.c
index d0075ba8617..83e48fad157 100644
--- a/source/blender/editors/interface/interface_query.c
+++ b/source/blender/editors/interface/interface_query.c
@@ -463,6 +463,10 @@ size_t ui_but_drawstr_len_without_sep_char(const uiBut *but)
size_t ui_but_tip_len_only_first_line(const uiBut *but)
{
+ if (but->tip == NULL) {
+ return 0;
+ }
+
const char *str_sep = strchr(but->tip, '\n');
if (str_sep != NULL) {
return (str_sep - but->tip);