diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-08-28 23:09:09 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-08-28 23:09:19 +0300 |
commit | 744eb1172e3ba16af21813de6c1e772490a68b91 (patch) | |
tree | fface9d17650558d425c2d420855a58ab53bbaa9 /source/blender/editors/interface/interface_context_menu.c | |
parent | b78a439e9071f83baf296d52c0c1a458aecd2938 (diff) |
Fix T80195: crash when invoking tooltips on MacOS
Problem introduced in rBadd48c007428.
`UI_but_string_info_get` can change the value of the args.
Diffstat (limited to 'source/blender/editors/interface/interface_context_menu.c')
-rw-r--r-- | source/blender/editors/interface/interface_context_menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_context_menu.c b/source/blender/editors/interface/interface_context_menu.c index 9889c81ca55..02a9c3742d7 100644 --- a/source/blender/editors/interface/interface_context_menu.c +++ b/source/blender/editors/interface/interface_context_menu.c @@ -517,7 +517,7 @@ bool ui_popup_context_menu_for_button(bContext *C, uiBut *but) uiLayout *layout; { - const uiStringInfo label = {BUT_GET_LABEL, NULL}; + uiStringInfo label = {BUT_GET_LABEL, NULL}; /* highly unlikely getting the label ever fails */ UI_but_string_info_get(C, but, &label, NULL); |