Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-07-27 23:22:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-07-27 23:22:23 +0400
commit51e8926cb9935da2e9cecd47acd414de241eb786 (patch)
tree7f5d44cfeff90c91a29981b565943fcfdb501bb5 /source/blender/editors/space_text
parent112711e6a45a8e556bbd3e705ef6313a5b2ddc01 (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')
-rw-r--r--source/blender/editors/space_text/text_draw.c4
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) {