mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Region::_start should be a timepos_t not a timecnt_t (GUI edition)
This commit is contained in:
parent
56cde042cd
commit
49424ab0e3
5 changed files with 20 additions and 11 deletions
|
|
@ -505,8 +505,8 @@ MidiStreamView::setup_rec_box ()
|
|||
/* MIDI regions should likely not be positioned using audio time, but this is
|
||||
* just a rec-region, so we don't really care
|
||||
*/
|
||||
region->set_start (timecnt_t (_trackview.track()->current_capture_start()
|
||||
- _trackview.track()->get_capture_start_sample (0)));
|
||||
|
||||
region->set_start (timepos_t (_trackview.track()->current_capture_start() - _trackview.track()->get_capture_start_sample (0)));
|
||||
region->set_position (_trackview.track()->current_capture_start ());
|
||||
|
||||
RegionView* rv = add_region_view_internal (region, false, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue