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:
authorAlexander Ewering <blender@instinctive.de>2005-09-16 02:06:31 +0400
committerAlexander Ewering <blender@instinctive.de>2005-09-16 02:06:31 +0400
commit7c29e6d551127453154d4a97698d77992f2180f7 (patch)
tree6ab70d03cdf8f90813c146fd6d5e401baa7a4249 /source/blender/src/editfont.c
parent825d0d5d58b6018995b601c61ef61b8705e459c6 (diff)
And this time, the right file.
Diffstat (limited to 'source/blender/src/editfont.c')
-rw-r--r--source/blender/src/editfont.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/src/editfont.c b/source/blender/src/editfont.c
index 4e2857a76bb..50ea124886a 100644
--- a/source/blender/src/editfont.c
+++ b/source/blender/src/editfont.c
@@ -389,6 +389,9 @@ void txt_export_to_object(struct Text *text)
cu->str= MEM_mallocN(nchars+4, "str");
cu->strinfo= MEM_callocN((nchars+4)*sizeof(CharInfo), "strinfo");
+ cu->totbox= cu->actbox= 1;
+ cu->tb= MEM_callocN(MAXTEXTBOX*sizeof(TextBox), "textbox");
+ cu->tb[0].w = cu->tb[0].h = 0.0;
tmp= text->lines.first;
strcpy(cu->str, tmp->line);
@@ -468,6 +471,9 @@ void txt_export_to_objects(struct Text *text)
cu->str= MEM_mallocN(nchars+4, "str");
cu->strinfo= MEM_callocN((nchars+4)*sizeof(CharInfo), "strinfo");
+ cu->totbox= cu->actbox= 1;
+ cu->tb= MEM_callocN(MAXTEXTBOX*sizeof(TextBox), "textbox");
+ cu->tb[0].w = cu->tb[0].h = 0.0;
strcpy(cu->str, curline->line);
cu->len= strlen(curline->line);