Text3d: add assert's to check the selection and length are valid

This commit is contained in:
2013-12-29 23:16:02 +11:00
parent 873c6e5479
commit 748b800eba
2 changed files with 6 additions and 0 deletions

View File

@@ -237,6 +237,8 @@ static void update_string(Curve *cu)
/* Copy the wchar to UTF-8 */
BLI_strncpy_wchar_as_utf8(cu->str, ef->textbuf, len + 1);
BLI_assert(len == cu->len);
}
static int insert_into_textbuf(Object *obedit, uintptr_t c)