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:
authorCampbell Barton <ideasman42@gmail.com>2017-11-05 16:04:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-11-05 16:04:46 +0300
commit18d7fbe4f58c86f6f91b1e9e5c1f7f0c593a1d0f (patch)
tree464a796b5e52172d6ddb2eef426b82683fa23583 /source/blender/editors/interface/interface_layout.c
parent2837a7e198a15381ec00e190c1c7c9a628d3412b (diff)
Cleanup: order buffer length after the buffer
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r--source/blender/editors/interface/interface_layout.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index a6bbe725403..fa27c6fc07b 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -710,7 +710,7 @@ static uiBut *ui_item_with_label(uiLayout *layout, uiBlock *block, const char *n
if (RNA_struct_is_a(ptr->type, &RNA_KeyMapItem)) {
char buf[128];
- WM_keymap_item_to_string(ptr->data, false, sizeof(buf), buf);
+ WM_keymap_item_to_string(ptr->data, false, buf, sizeof(buf));
but = uiDefButR_prop(block, UI_BTYPE_HOTKEY_EVENT, 0, buf, x, y, w, h, ptr, prop, 0, 0, 0, -1, -1, NULL);
UI_but_func_set(but, ui_keymap_but_cb, but, NULL);
@@ -2093,8 +2093,9 @@ void uiItemMenuEnumO_ptr(
(ot->prop && ot->invoke))
{
char keybuf[128];
- if (WM_key_event_operator_string(C, ot->idname, layout->root->opcontext, NULL, false,
- sizeof(keybuf), keybuf))
+ if (WM_key_event_operator_string(
+ C, ot->idname, layout->root->opcontext, NULL, false,
+ keybuf, sizeof(keybuf)))
{
ui_but_add_shortcut(but, keybuf, false);
}