mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 23:46:20 +01:00
fix timeline types for Location::ripple() method
This commit is contained in:
parent
c8dc300fe7
commit
4f18d7f220
2 changed files with 4 additions and 4 deletions
|
|
@ -203,7 +203,7 @@ public:
|
|||
bool clear_xrun_markers ();
|
||||
bool clear_ranges ();
|
||||
|
||||
void ripple (samplepos_t at, samplecnt_t distance, bool include_locked, bool notify);
|
||||
void ripple (timepos_t const & at, timecnt_t const & distance, bool include_locked, bool notify);
|
||||
|
||||
XMLNode& get_state (void);
|
||||
int set_state (const XMLNode&, int version);
|
||||
|
|
|
|||
|
|
@ -1517,7 +1517,7 @@ Locations::range_starts_at (timepos_t const & pos, timecnt_t const & slop, bool
|
|||
}
|
||||
|
||||
void
|
||||
Locations::ripple (samplepos_t at, samplecnt_t distance, bool include_locked, bool notify)
|
||||
Locations::ripple (timepos_t const & at, timecnt_t const & distance, bool include_locked, bool notify)
|
||||
{
|
||||
LocationList copy;
|
||||
|
||||
|
|
@ -1554,10 +1554,10 @@ Locations::ripple (samplepos_t at, samplecnt_t distance, bool include_locked, bo
|
|||
}
|
||||
|
||||
if ((*i)->start() >= at) {
|
||||
(*i)->set_start ((*i)->start() + distance);
|
||||
(*i)->set_start ((*i)->start().earlier (distance));
|
||||
|
||||
if (!(*i)->is_mark()) {
|
||||
(*i)->set_end ((*i)->end() + distance);
|
||||
(*i)->set_end ((*i)->end().earlier (distance));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue