From 6872ff71d5374397601eeb5d720faadb4fccecbc Mon Sep 17 00:00:00 2001 From: Ian Thompson Date: Sat, 26 Jul 2008 22:25:26 +0000 Subject: [PATCH] Oops, forgot to reset counters for each line when calculating wrap. --- source/blender/src/drawtext.c | 5 +++-- 1 file 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) {