1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-21 16:11:11 +01:00

Bug1375: Fix sync-lock behavior ...

... which was broken by commit 3015a9c8d9
This commit is contained in:
Paul Licameli
2016-05-21 01:59:46 -04:00
parent 66c14c9940
commit 079eb3e98e

View File

@@ -1155,14 +1155,15 @@ bool WaveTrack::SyncLockAdjust(double oldT1, double newT1)
// If track is empty at oldT1 insert whitespace; otherwise, silence
if (IsEmpty(oldT1, oldT1))
{
bool ret = false;
bool ret = true;
// Check if clips can move
bool clipsCanMove = true;
gPrefs->Read(wxT("/GUI/EditClipCanMove"), &clipsCanMove);
if (clipsCanMove) {
auto tmp = Cut (oldT1, GetEndTime() + 1.0/GetRate());
if (!ret) return false;
if (!tmp)
return false;
ret = Paste(newT1, tmp.get());
wxASSERT(ret);