diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-26 13:16:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-26 13:16:13 +0300 |
commit | 1bde690e91ab0b27e0da816c7ebcf98ad6459bb6 (patch) | |
tree | 46eab45da7b0c8fa5808652c58e8929316ed270a /source/blender/editors/interface/interface_handlers.c | |
parent | fe7812f7c24f4c89cd1d046abc87daad545c2d48 (diff) |
Cleanup: style, use braces for editor/interface
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 968d41d9795..404de2cd085 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -2555,8 +2555,9 @@ static int ui_text_position_from_hidden(uiBut *but, int pos) butstr = (but->editstr) ? but->editstr : but->drawstr; - for (i = 0, strpos = butstr; i < pos; i++) + for (i = 0, strpos = butstr; i < pos; i++) { strpos = BLI_str_find_next_char_utf8(strpos, NULL); + } return (strpos - butstr); } |