mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Compatibility sanity check for inserting clips into a WaveTrack...
... And don't move from the shared pointer argument
This commit is contained in:
@@ -825,7 +825,8 @@ namespace {
|
||||
WaveClip *const pSrcClip = trackClip.clip;
|
||||
if (pSrcClip) {
|
||||
const auto dstTrack = trackClip.dstTrack;
|
||||
dstTrack->AddClip(std::move(trackClip.holder));
|
||||
// To do: check and propagate the error! Can't from a dtor
|
||||
(void) dstTrack->AddClip(trackClip.holder);
|
||||
trackClip.track = dstTrack;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user