1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-01 03:54:47 +02:00

Reordered SnapManager ctor arguments, added AudacityProject &

This commit is contained in:
Paul Licameli
2020-09-09 07:43:57 -04:00
parent 6510b859f3
commit 6337e1ccf4
5 changed files with 26 additions and 20 deletions

View File

@@ -1900,7 +1900,8 @@ void AdornedRulerPanel::HandleSnapping()
if (handle) {
auto &pSnapManager = handle->mSnapManager;
if (! pSnapManager)
pSnapManager = std::make_unique<SnapManager>(mTracks, mViewInfo);
pSnapManager =
std::make_unique<SnapManager>(*mProject, *mTracks, *mViewInfo);
auto results = pSnapManager->Snap(NULL, mQuickPlayPos, false);
mQuickPlayPos = results.outTime;