diff options
-rw-r--r-- | source/blender/editors/util/numinput.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/util/numinput.c b/source/blender/editors/util/numinput.c index 57ae95d1305..fbf1262c4d6 100644 --- a/source/blender/editors/util/numinput.c +++ b/source/blender/editors/util/numinput.c @@ -115,6 +115,8 @@ void outputNumInput(NumInput *n, char *str) const char *cur = (i == n->idx) ? "|" : ""; BLI_snprintf(&str[j * ln], ln, "%sNONE%s", cur, cur); } + /* We might have cut some multi-bytes utf8 chars (e.g. trailing '°' of degrees values can become only 'A')... */ + BLI_utf8_invalid_strip(&str[j * ln], ln); } } |