mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Fix uninitialized value in note create drag.
This commit is contained in:
parent
dff9e60c7f
commit
116722f182
1 changed files with 2 additions and 1 deletions
|
|
@ -5211,7 +5211,7 @@ NoteCreateDrag::NoteCreateDrag (Editor* e, ArdourCanvas::Item* i, MidiRegionView
|
||||||
, _region_view (rv)
|
, _region_view (rv)
|
||||||
, _drag_rect (0)
|
, _drag_rect (0)
|
||||||
{
|
{
|
||||||
|
_note[0] = _note[1] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
NoteCreateDrag::~NoteCreateDrag ()
|
NoteCreateDrag::~NoteCreateDrag ()
|
||||||
|
|
@ -5249,6 +5249,7 @@ NoteCreateDrag::start_grab (GdkEvent* event, Gdk::Cursor* cursor)
|
||||||
}
|
}
|
||||||
|
|
||||||
_note[0] = adjusted_frame (pf, event) - _region_view->region()->position ();
|
_note[0] = adjusted_frame (pf, event) - _region_view->region()->position ();
|
||||||
|
_note[1] = _note[0];
|
||||||
|
|
||||||
MidiStreamView* sv = _region_view->midi_stream_view ();
|
MidiStreamView* sv = _region_view->midi_stream_view ();
|
||||||
double const x = _editor->sample_to_pixel (_note[0]);
|
double const x = _editor->sample_to_pixel (_note[0]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue