diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-27 23:22:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-27 23:22:23 +0400 |
commit | 51e8926cb9935da2e9cecd47acd414de241eb786 (patch) | |
tree | 7f5d44cfeff90c91a29981b565943fcfdb501bb5 /source/blender/editors/space_text/text_draw.c | |
parent | 112711e6a45a8e556bbd3e705ef6313a5b2ddc01 (diff) |
bugfix [#23052] New Bracket Highlighting Patch Causes Seg Fault [Patch to fix attached]
by Justin Dailey (dail) for bracket highlight patch from yesterday.
Diffstat (limited to 'source/blender/editors/space_text/text_draw.c')
-rw-r--r-- | source/blender/editors/space_text/text_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_text/text_draw.c b/source/blender/editors/space_text/text_draw.c index 8570965bb03..fba2fe89997 100644 --- a/source/blender/editors/space_text/text_draw.c +++ b/source/blender/editors/space_text/text_draw.c @@ -1157,7 +1157,7 @@ static void draw_brackets(SpaceText *st, ARegion *ar) 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 @@ static void draw_brackets(SpaceText *st, ARegion *ar) 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) { |