automation region view: do not set height of the line outside of ::set_height()
This commit is contained in:
parent
44699e605c
commit
87e89750f8
|
@ -86,8 +86,6 @@ AutomationRegionView::init (bool /*wfd*/)
|
||||||
|
|
||||||
reset_width_dependent_items ((double) _region->length_samples() / samples_per_pixel);
|
reset_width_dependent_items ((double) _region->length_samples() / samples_per_pixel);
|
||||||
|
|
||||||
set_height (trackview.current_height());
|
|
||||||
|
|
||||||
fill_color_name = "midi frame base";
|
fill_color_name = "midi frame base";
|
||||||
set_colors ();
|
set_colors ();
|
||||||
|
|
||||||
|
@ -103,7 +101,6 @@ AutomationRegionView::create_line (boost::shared_ptr<ARDOUR::AutomationList> lis
|
||||||
boost::dynamic_pointer_cast<ARDOUR::MidiRegion> (_region),
|
boost::dynamic_pointer_cast<ARDOUR::MidiRegion> (_region),
|
||||||
_parameter));
|
_parameter));
|
||||||
_line->set_colors();
|
_line->set_colors();
|
||||||
_line->set_height ((uint32_t)rint(trackview.current_height() - 2.5 - NAME_HIGHLIGHT_SIZE));
|
|
||||||
_line->set_visibility (AutomationLine::VisibleAspects (AutomationLine::Line|AutomationLine::ControlPoints));
|
_line->set_visibility (AutomationLine::VisibleAspects (AutomationLine::Line|AutomationLine::ControlPoints));
|
||||||
_line->set_maximum_time (timepos_t (_region->length()));
|
_line->set_maximum_time (timepos_t (_region->length()));
|
||||||
_line->set_offset (_region->start ());
|
_line->set_offset (_region->start ());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user