1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Don't create placeholder clips in Duplicate command ...

... when there is no clip at the right edge of the selection.
This commit is contained in:
Paul Licameli
2016-11-26 08:48:08 -05:00
parent 65c722bfe5
commit 25619fb46e
9 changed files with 29 additions and 13 deletions

View File

@@ -167,8 +167,14 @@ class AUDACITY_DLL_API WaveTrack final : public Track {
//
Track::Holder Cut(double t0, double t1) override;
Track::Holder Copy(double t0, double t1) const override;
// If forClipboard is true,
// and there is no clip at the end time of the selection, then the result
// will contain a "placeholder" clip whose only purpose is to make
// GetEndTime() correct. This clip is not re-copied when pasting.
Track::Holder Copy(double t0, double t1, bool forClipboard = true) const override;
Track::Holder CopyNonconst(double t0, double t1) /* not override */;
bool Clear(double t0, double t1) override;
bool Paste(double t0, const Track *src) override;
bool ClearAndPaste(double t0, double t1,