diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-14 12:37:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-14 12:37:47 +0300 |
commit | f35572ae9e45929a0d2852e52a78613cc3f3418f (patch) | |
tree | 530335e1db7921bf28455c79f4dec88fd8ea8ae2 /source/blender/editors/interface/interface.c | |
parent | 62f594ca7b88a225984ca2d10bd35809707065f4 (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index b592a75c0d3..cc3f450a99d 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -268,9 +268,11 @@ static void ui_update_flexible_spacing(const ARegion *region, uiBlock *block) BLI_rctf_translate(&but->rect, offset, 0); if (but->type == UI_BTYPE_SEPR_SPACER) { /* How much the next block overlap with the current segment */ - int overlap = (i == sepr_flex_len - 1) ? buttons_width - spacers_pos[i] - : (spacers_pos[i+1] - spacers_pos[i]) / 2; - int segment_end = segment_width * (i+1); + int overlap = ( + (i == sepr_flex_len - 1) ? + buttons_width - spacers_pos[i] : + (spacers_pos[i + 1] - spacers_pos[i]) / 2); + int segment_end = segment_width * (i + 1); int spacer_end = segment_end - overlap; int spacer_sta = spacers_pos[i] + offset; if (spacer_end > spacer_sta) { |