mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-05 13:15:44 +01:00
remove thinko in MidiRegion::post_set().
- should fix incorrect midi region length on split.
This commit is contained in:
parent
cbd1a25f8c
commit
c37d31054b
1 changed files with 4 additions and 5 deletions
|
|
@ -213,12 +213,11 @@ MidiRegion::post_set (const PropertyChange& pc)
|
|||
so disallow (this has been set from XML state anyway).
|
||||
*/
|
||||
if (!_session.loading()) {
|
||||
/* ensure this only updates non-musical regions */
|
||||
if (position_lock_style() == AudioTime) {
|
||||
update_length_beats (0);
|
||||
}
|
||||
update_length_beats (0);
|
||||
}
|
||||
} else if (pc.contains (Properties::start) && !pc.contains (Properties::start_beats)) {
|
||||
}
|
||||
|
||||
if (pc.contains (Properties::start) && !pc.contains (Properties::start_beats)) {
|
||||
set_start_beats_from_start_frames ();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue