diff options
author | Ian Thompson <quornian@googlemail.com> | 2008-07-27 02:25:26 +0400 |
---|---|---|
committer | Ian Thompson <quornian@googlemail.com> | 2008-07-27 02:25:26 +0400 |
commit | 6872ff71d5374397601eeb5d720faadb4fccecbc (patch) | |
tree | 52413846b04aa19ecf920dadf6e20b6fe125fbf6 /source/blender/src/drawtext.c | |
parent | 6531d859ba4f61d6741b0e06bff07d07b3231910 (diff) |
Oops, forgot to reset counters for each line when calculating wrap.
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r-- | source/blender/src/drawtext.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c index ee591125056..9b7a7bbfb7d 100644 --- a/source/blender/src/drawtext.c +++ b/source/blender/src/drawtext.c @@ -737,11 +737,12 @@ static void wrap_offset(SpaceText *st, TextLine *linein, int cursin, int *offl, } /* Calculate line offset for earlier lines */ - end= max= get_wrap_width(st); - taboffs= start= 0; + max= get_wrap_width(st); *offl= 0; while (linep) { + taboffs= start= 0; + end= max; *offc= 0; for (i=0; linep->line[i]!='\0'; i++) { if (i-start+taboffs>=max) { |