diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-08-30 13:11:47 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-08-30 13:11:47 +0400 |
commit | 9ccf84926d3066f4dd6f84753374221c3859358f (patch) | |
tree | 87ce6651170479f4ed07b6d6994c70a4e66d26a9 | |
parent | 9135425607ccb56df9a3210e3ee222650cb74686 (diff) |
Fix #36605: Segfault when border selecting markers in the "graph" mode when no track is active
-rw-r--r-- | source/blender/editors/space_clip/clip_graph_ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_clip/clip_graph_ops.c b/source/blender/editors/space_clip/clip_graph_ops.c index cdb0fdadebd..1053418fd6f 100644 --- a/source/blender/editors/space_clip/clip_graph_ops.c +++ b/source/blender/editors/space_clip/clip_graph_ops.c @@ -352,6 +352,10 @@ static int border_select_graph_exec(bContext *C, wmOperator *op) BorderSelectuserData userdata; rcti rect; + if (act_track == NULL) { + return OPERATOR_CANCELLED; + } + /* get rectangle from operator */ WM_operator_properties_border_to_rcti(op, &rect); |