Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-07-15 23:04:49 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-07-15 23:04:49 +0400
commit28a27e2e9d7f6f75d5e68c2b890e35a62bc3f0ad (patch)
tree47ae1f7d602ddc1cc44dd1866b64de87bd85d634
parent1dd7156c4c1d6a62f17fb6621ec3dc31297ba54a (diff)
Fix text object text entry being broken after recent fix to BLI_strncpy_wchar_from_utf8.
Checked other usages of this function but they seem to be fine.
-rw-r--r--source/blender/editors/curve/editfont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c
index a04c3fc3c8f..db4e4dc8500 100644
--- a/source/blender/editors/curve/editfont.c
+++ b/source/blender/editors/curve/editfont.c
@@ -1273,7 +1273,7 @@ static int insert_text_invoke(bContext *C, wmOperator *op, const wmEvent *event)
accentcode = 0;
}
else if (event->utf8_buf[0]) {
- BLI_strncpy_wchar_from_utf8(inserted_text, event->utf8_buf, 1);
+ BLI_strncpy_wchar_from_utf8(inserted_text, event->utf8_buf, 2);
ascii = inserted_text[0];
insert_into_textbuf(obedit, ascii);
accentcode = 0;