[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30814] trunk/blender/source/blender/ editors/space_text/text_draw.c: bugfix [#23052] New Bracket Highlighting Patch Causes Seg Fault [Patch to fix attached]

Campbell Barton ideasman42 at gmail.com
Tue Jul 27 21:22:23 CEST 2010


Revision: 30814
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30814
Author:   campbellbarton
Date:     2010-07-27 21:22:23 +0200 (Tue, 27 Jul 2010)

Log Message:
-----------
bugfix [#23052] New Bracket Highlighting Patch Causes Seg Fault [Patch to fix attached]
by Justin Dailey (dail) for bracket highlight patch from yesterday.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_text/text_draw.c

Modified: trunk/blender/source/blender/editors/space_text/text_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_text/text_draw.c	2010-07-27 16:18:12 UTC (rev 30813)
+++ trunk/blender/source/blender/editors/space_text/text_draw.c	2010-07-27 19:22:23 UTC (rev 30814)
@@ -1157,7 +1157,7 @@
 		c++;
 		while(linep) {
 			while(c<linep->len) {
-				if(linep->format[c] != 'l' && linep->format[c] != '#') {
+				if(linep->format && linep->format[c] != 'l' && linep->format[c] != '#') {
 					b= text_check_bracket(linep->line[c]);
 					if(b==find) {
 						if(stack==0) {
@@ -1183,7 +1183,7 @@
 		c--;
 		while(linep) {
 			while(c>=0) {
-				if(linep->format[c] != 'l' && linep->format[c] != '#') {
+				if(linep->format && linep->format[c] != 'l' && linep->format[c] != '#') {
 					b= text_check_bracket(linep->line[c]);
 					if(b==find) {
 						if(stack==0) {





More information about the Bf-blender-cvs mailing list