diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-11 07:43:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-11 07:43:05 +0300 |
commit | 1241e9170711acfa0fbf99d5289b0241f6db1c23 (patch) | |
tree | 92bc1bcd417605c771046cebd7741126e10700a0 /source/blender/editors/util | |
parent | f9c0d7261a22d8d237e8cc23453c636c3a09c58b (diff) |
Cleanup: use ELEM, STREQ macros
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r-- | source/blender/editors/util/ed_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/util/ed_draw.c b/source/blender/editors/util/ed_draw.c index d7b22b4f601..3b543cdf6ce 100644 --- a/source/blender/editors/util/ed_draw.c +++ b/source/blender/editors/util/ed_draw.c @@ -189,7 +189,7 @@ static void metadata_draw_imbuf(ImBuf *ibuf, const rctf *rect, int fontid, const ofs_y += vertical_offset; } } /* Strip */ - else if (i == 1 || i == 2) { + else if (ELEM(i, 1, 2)) { int len = BLI_snprintf_rlen(temp_str, MAX_METADATA_STR, "%s: ", meta_data_list[i + 1]); if (metadata_is_valid(ibuf, temp_str, i + 1, len)) { BLF_position(fontid, xmin, ymax - vertical_offset - ofs_y, 0.0f); |