1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-17 16:50:26 +02:00

Bug 2283 - Crash on editing Nyquist Generator plug-in parameters in Macro

Big Thanks to Steve for finding this and writing clear steps to reproduce when logging this bug in Bugzilla.  Also thanks to Peter for confirming the same bug is present on Windows, i.e. is all platforms, not just Linux.
This commit is contained in:
James Crook 2020-02-17 16:31:40 +00:00
parent 1d9aa20a40
commit a6699ed494

View File

@ -786,7 +786,9 @@ NumericFormatSymbol Effect::GetDurationFormat()
NumericFormatSymbol Effect::GetSelectionFormat()
{
return ProjectSettings::Get( *FindProject() ).GetSelectionFormat();
if( FindProject() )
return ProjectSettings::Get( *FindProject() ).GetSelectionFormat();
return NumericConverter::HoursMinsSecondsFormat();
}
void Effect::SetDuration(double seconds)
@ -2247,6 +2249,8 @@ void Effect::ReplaceProcessedTracks(const bool bGoodResult)
const AudacityProject *Effect::FindProject() const
{
if (!inputTracks())
return nullptr;
return inputTracks()->GetOwner();
}