13
0

Fix crash due to uninitialised use of _note_lines.

git-svn-id: svn://localhost/ardour2/branches/3.0@7318 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-06-28 21:03:26 +00:00
parent c6247be4d6
commit d680d2323c

View File

@ -64,8 +64,6 @@ MidiStreamView::MidiStreamView (MidiTimeAxisView& tv)
, _data_note_min(60)
, _data_note_max(71)
{
color_handler ();
/* use a group dedicated to MIDI underlays. Audio underlays are not in this group. */
midi_underlay_group = new ArdourCanvas::Group (*_canvas_group);
midi_underlay_group->lower_to_bottom();
@ -85,6 +83,8 @@ MidiStreamView::MidiStreamView (MidiTimeAxisView& tv)
_note_lines->lower_to_bottom();
color_handler ();
ColorsChanged.connect(sigc::mem_fun(*this, &MidiStreamView::color_handler));
note_range_adjustment.set_page_size(_highest_note - _lowest_note);