use running_from_source_tree()
[ardour.git] / gtk2_ardour / step_editor.cc
index d82f0a2dd7a38a37aeb6b14c0ea2a577ddf230e9..8afc0ed8261cbe176cb2fb1d15ecf47972a2b517 100644 (file)
@@ -116,7 +116,6 @@ StepEditor::prepare_step_edit_region ()
        } else {
 
                const Meter& m = _mtv.session()->tempo_map().meter_at_frame (step_edit_insert_position);
-               const Tempo& t = _mtv.session()->tempo_map().tempo_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;
 }