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:
parent
c6247be4d6
commit
d680d2323c
@ -64,8 +64,6 @@ MidiStreamView::MidiStreamView (MidiTimeAxisView& tv)
|
|||||||
, _data_note_min(60)
|
, _data_note_min(60)
|
||||||
, _data_note_max(71)
|
, _data_note_max(71)
|
||||||
{
|
{
|
||||||
color_handler ();
|
|
||||||
|
|
||||||
/* use a group dedicated to MIDI underlays. Audio underlays are not in this group. */
|
/* 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 = new ArdourCanvas::Group (*_canvas_group);
|
||||||
midi_underlay_group->lower_to_bottom();
|
midi_underlay_group->lower_to_bottom();
|
||||||
@ -85,6 +83,8 @@ MidiStreamView::MidiStreamView (MidiTimeAxisView& tv)
|
|||||||
|
|
||||||
_note_lines->lower_to_bottom();
|
_note_lines->lower_to_bottom();
|
||||||
|
|
||||||
|
color_handler ();
|
||||||
|
|
||||||
ColorsChanged.connect(sigc::mem_fun(*this, &MidiStreamView::color_handler));
|
ColorsChanged.connect(sigc::mem_fun(*this, &MidiStreamView::color_handler));
|
||||||
|
|
||||||
note_range_adjustment.set_page_size(_highest_note - _lowest_note);
|
note_range_adjustment.set_page_size(_highest_note - _lowest_note);
|
||||||
|
Loading…
Reference in New Issue
Block a user