fix behaviour of select_(next|prev)_route() in editor, when VCAs are present.
[ardour.git] / gtk2_ardour / step_editor.cc
index 62b2646b818b64b5301a1c6fabf31cd9affcfd47..8afc0ed8261cbe176cb2fb1d15ecf47972a2b517 100644 (file)
@@ -115,8 +115,7 @@ StepEditor::prepare_step_edit_region ()
 
        } else {
 
-               const Meter& m = _mtv.session()->tempo_map().meter_at (step_edit_insert_position);
-               const Tempo& t = _mtv.session()->tempo_map().tempo_at_frame (step_edit_insert_position);
+               const Meter& m = _mtv.session()->tempo_map().meter_at_frame (step_edit_insert_position);
 
                double baf = _mtv.session()->tempo_map().beat_at_frame (step_edit_insert_position);
                double next_bar_in_beats =  baf + m.divisions_per_bar();
@@ -325,6 +324,8 @@ StepEditor::step_add_note (uint8_t channel, uint8_t pitch, uint8_t velocity, Evo
                _step_edit_chord_duration = max (_step_edit_chord_duration, beat_duration);
        }
 
+       step_edit_region_view->set_step_edit_cursor_width (step_editor->note_length());
+
        return 0;
 }