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

Fix --without-midi build

See downstream bug: https://bugs.gentoo.org/637110
This commit is contained in:
Matt Whitlock
2018-02-21 12:19:19 +01:00
committed by Lars Wendler
parent f665e6da2b
commit e1f0e974d0
5 changed files with 27 additions and 3 deletions

View File

@@ -604,7 +604,7 @@ UIHandle::Result TimeShiftHandle::Drag
{
trySnap = true;
if (pTrack->GetKind() == Track::Wave) {
auto wt = static_cast<const WaveTrack *>(pTrack);
auto wt = static_cast<const WaveTrack *>(pTrack.get());
const double rate = wt->GetRate();
// set it to a sample point
desiredSlideAmount = rint(desiredSlideAmount * rate) / rate;