fix for using uninitialized vars in own recent commit.

This commit is contained in:
Campbell Barton 2011-05-24 05:22:58 +00:00
parent dc33976fc2
commit e1a7ecb5ae

@ -305,8 +305,6 @@ static int sequencer_select_invoke(bContext *C, wmOperator *op, wmEvent *event)
short linked_handle= RNA_boolean_get(op->ptr, "linked_handle");
short left_right= RNA_boolean_get(op->ptr, "left_right");
short linked_time= RNA_boolean_get(op->ptr, "linked_time");
int mval[2];
Sequence *seq,*neighbor, *act_orig;
int hand,sel_side;
@ -343,7 +341,7 @@ static int sequencer_select_invoke(bContext *C, wmOperator *op, wmEvent *event)
/* use different logic for this */
float x;
deselect_all_seq(scene);
UI_view2d_region_to_view(v2d, mval[0], mval[1], &x, NULL);
UI_view2d_region_to_view(v2d, event->mval[0], event->mval[1], &x, NULL);
SEQP_BEGIN(ed, seq) {
if (x < CFRA) {