diff options
Diffstat (limited to 'source/blender/blenkernel/intern/font.c')
-rw-r--r-- | source/blender/blenkernel/intern/font.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c index 1c8ebded539..5e5affcb311 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -1225,7 +1225,7 @@ makebreak: timeofs += distfac * cu->xof; /* not cyclic */ ct = chartransdata; - for (i = 0; i < slen; i++, ct++) { + for (i = 0; i <= slen; i++, ct++) { float ctime, dtime, vec[4], tvec[4], rotvec[3]; float si, co; @@ -1267,9 +1267,8 @@ makebreak: sb = &selboxes[i - selstart]; sb->rot = -ct->rot; } + } - /* null character is always zero width, no need to iterate over it */ - chartransdata[slen] = chartransdata[slen - 1]; } } |