mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
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
c97f4f4016
commit
e7ae93929b
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue