diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-09-04 12:49:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-09-04 12:49:11 +0400 |
commit | 6ed49857a4408bf413f4bf626229aa00d6c8cad7 (patch) | |
tree | fe28f1a9577172536f7ef33bfbaf0e84bf55ef1c /source/blender/editors/space_text | |
parent | 15ef88b90239af30b08e798cc57cea317f1d56c9 (diff) |
poll functions to stop crashing when running operators in an invalid context.
Diffstat (limited to 'source/blender/editors/space_text')
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index 7e514ea723a..14b72e13856 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -1478,7 +1478,7 @@ static int move_cursor(bContext *C, int type, int select) ARegion *ar= CTX_wm_region(C); /* ensure we have the right region, it's optional */ - if(ar->regiontype != RGN_TYPE_WINDOW) + if(ar && ar->regiontype != RGN_TYPE_WINDOW) ar= NULL; switch(type) { |