mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 23:33:49 +01:00
Remove one more GetActiveProject in a menu command handler
This commit is contained in:
@@ -143,8 +143,7 @@ bool DoPasteNothingSelected(AudacityProject &project)
|
|||||||
// Select some pasted samples, which is probably impossible to get right
|
// Select some pasted samples, which is probably impossible to get right
|
||||||
// with various project and track sample rates.
|
// with various project and track sample rates.
|
||||||
// So do it at the sample rate of the project
|
// So do it at the sample rate of the project
|
||||||
AudacityProject *p = GetActiveProject();
|
double projRate = ProjectSettings::Get( project ).GetRate();
|
||||||
double projRate = ProjectSettings::Get( *p ).GetRate();
|
|
||||||
double quantT0 = QUANTIZED_TIME(clipboard.T0(), projRate);
|
double quantT0 = QUANTIZED_TIME(clipboard.T0(), projRate);
|
||||||
double quantT1 = QUANTIZED_TIME(clipboard.T1(), projRate);
|
double quantT1 = QUANTIZED_TIME(clipboard.T1(), projRate);
|
||||||
selectedRegion.setTimes(
|
selectedRegion.setTimes(
|
||||||
|
|||||||
Reference in New Issue
Block a user