1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 15:23:48 +01:00

Remove one more GetActiveProject in a menu command handler

This commit is contained in:
Paul Licameli
2020-01-04 14:00:32 -05:00
parent f0b75832b4
commit 390d833229

View File

@@ -143,8 +143,7 @@ bool DoPasteNothingSelected(AudacityProject &project)
// Select some pasted samples, which is probably impossible to get right
// with various project and track sample rates.
// So do it at the sample rate of the project
AudacityProject *p = GetActiveProject();
double projRate = ProjectSettings::Get( *p ).GetRate();
double projRate = ProjectSettings::Get( project ).GetRate();
double quantT0 = QUANTIZED_TIME(clipboard.T0(), projRate);
double quantT1 = QUANTIZED_TIME(clipboard.T1(), projRate);
selectedRegion.setTimes(