mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
timeline types for libs/waveview
This commit is contained in:
parent
e090834525
commit
c9035efb25
2 changed files with 5 additions and 5 deletions
|
|
@ -1346,7 +1346,7 @@ WaveView::clear_cache ()
|
|||
samplecnt_t
|
||||
WaveView::region_length() const
|
||||
{
|
||||
return _region->length() - (_props->region_start - _region->start());
|
||||
return _region->length_samples() - (_props->region_start - _region->start_sample());
|
||||
}
|
||||
|
||||
samplepos_t
|
||||
|
|
@ -1383,8 +1383,8 @@ WaveView::region_resized ()
|
|||
}
|
||||
|
||||
begin_change ();
|
||||
_props->region_start = _region->start();
|
||||
_props->region_end = _region->start() + _region->length();
|
||||
_props->region_start = _region->start_sample();
|
||||
_props->region_end = _region->start_sample() + _region->length_samples();
|
||||
_bounding_box_dirty = true;
|
||||
end_change ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue