[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59651] trunk/blender/source/blender/ editors/space_clip/clip_graph_ops.c: Fix #36605: Segfault when border selecting markers in the "graph" mode when no track is active

Sergey Sharybin sergey.vfx at gmail.com
Fri Aug 30 11:11:47 CEST 2013


Revision: 59651
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59651
Author:   nazgul
Date:     2013-08-30 09:11:47 +0000 (Fri, 30 Aug 2013)
Log Message:
-----------
Fix #36605: Segfault when border selecting markers in the "graph" mode when no track is active

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_clip/clip_graph_ops.c

Modified: trunk/blender/source/blender/editors/space_clip/clip_graph_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_clip/clip_graph_ops.c	2013-08-29 23:46:44 UTC (rev 59650)
+++ trunk/blender/source/blender/editors/space_clip/clip_graph_ops.c	2013-08-30 09:11:47 UTC (rev 59651)
@@ -352,6 +352,10 @@
 	BorderSelectuserData userdata;
 	rcti rect;
 
+	if (act_track == NULL) {
+		return OPERATOR_CANCELLED;
+	}
+
 	/* get rectangle from operator */
 	WM_operator_properties_border_to_rcti(op, &rect);
 




More information about the Bf-blender-cvs mailing list