[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15788] branches/soc-2008-quorn/source/ blender/src/drawtext.c: Oops, forgot to reset counters for each line when calculating wrap.

Ian Thompson quornian at googlemail.com
Sun Jul 27 00:25:26 CEST 2008


Revision: 15788
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15788
Author:   quorn
Date:     2008-07-27 00:25:26 +0200 (Sun, 27 Jul 2008)

Log Message:
-----------
Oops, forgot to reset counters for each line when calculating wrap.

Modified Paths:
--------------
    branches/soc-2008-quorn/source/blender/src/drawtext.c

Modified: branches/soc-2008-quorn/source/blender/src/drawtext.c
===================================================================
--- branches/soc-2008-quorn/source/blender/src/drawtext.c	2008-07-26 22:00:26 UTC (rev 15787)
+++ branches/soc-2008-quorn/source/blender/src/drawtext.c	2008-07-26 22:25:26 UTC (rev 15788)
@@ -737,11 +737,12 @@
 	}
 
 	/* 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) {





More information about the Bf-blender-cvs mailing list