correctly set timeline_origin for a MidiCueEditor
for some reason the width is different when ::set_region() is called
This commit is contained in:
parent
236b91d8f9
commit
f7a49afeab
|
@ -275,6 +275,8 @@ MidiCueEditor::build_canvas ()
|
||||||
|
|
||||||
prh->set_position (Duple (0., n_timebars * timebar_height));
|
prh->set_position (Duple (0., n_timebars * timebar_height));
|
||||||
data_group->set_position (ArdourCanvas::Duple (w, timebar_height * n_timebars));
|
data_group->set_position (ArdourCanvas::Duple (w, timebar_height * n_timebars));
|
||||||
|
|
||||||
|
_timeline_origin = w;
|
||||||
h_scroll_group->set_position (Duple (w, 0.));
|
h_scroll_group->set_position (Duple (w, 0.));
|
||||||
|
|
||||||
_canvas->set_name ("MidiCueCanvas");
|
_canvas->set_name ("MidiCueCanvas");
|
||||||
|
@ -419,6 +421,8 @@ MidiCueEditor::set_region (std::shared_ptr<ARDOUR::MidiTrack> t, std::shared_ptr
|
||||||
|
|
||||||
/* Move stuff around */
|
/* Move stuff around */
|
||||||
|
|
||||||
|
_timeline_origin = w;
|
||||||
|
|
||||||
prh->set_position (Duple (0., n_timebars * timebar_height));
|
prh->set_position (Duple (0., n_timebars * timebar_height));
|
||||||
data_group->set_position (ArdourCanvas::Duple (w, timebar_height * n_timebars));
|
data_group->set_position (ArdourCanvas::Duple (w, timebar_height * n_timebars));
|
||||||
h_scroll_group->set_position (Duple (w, 0.));
|
h_scroll_group->set_position (Duple (w, 0.));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user