1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 22:28:57 +02:00

Allow NoteTrack to stretch left of zero

This commit is contained in:
Paul Licameli 2017-05-11 17:04:53 -04:00
parent 82ce041c75
commit 54636c65fa

View File

@ -2795,7 +2795,7 @@ auto TrackPanel::ChooseStretchMode
pState->mBeat1 =
nt->NearestBeatTime( viewInfo.selectedRegion.t1() );
auto selStart = std::max(0.0, viewInfo.PositionToTime(event.m_x, rect.x));
auto selStart = viewInfo.PositionToTime(event.m_x, rect.x);
pState->mBeatCenter = nt->NearestBeatTime( selStart );
if ( within( pState->mBeat0.second, pState->mBeatCenter.second, 0.1 ) )