From 9f67ebc35117313bb48f779a727f239eabf22293 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 30 Sep 2012 10:39:00 +0000 Subject: fix for crash drawing the clip view with a blend file that has lock to selected, but no clip in the view. --- source/blender/editors/space_clip/clip_editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_clip/clip_editor.c') diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c index 32f91671daf..167353e7cb7 100644 --- a/source/blender/editors/space_clip/clip_editor.c +++ b/source/blender/editors/space_clip/clip_editor.c @@ -368,7 +368,7 @@ int ED_clip_view_selection(const bContext *C, ARegion *ar, int fit) ED_space_clip_get_size(sc, &frame_width, &frame_height); - if (frame_width == 0 || frame_height == 0) + if ((frame_width == 0) || (frame_height == 0) || (sc->clip == NULL)) return FALSE; if (!selected_boundbox(sc, min, max)) -- cgit v1.2.3