1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Sequence consistency check will not throw in 2.2.1

This commit is contained in:
Paul Licameli 2017-11-20 20:27:31 -05:00
parent 2068662954
commit 6e72aed6a5
2 changed files with 7 additions and 4 deletions

View File

@ -45,6 +45,8 @@ public:
~InconsistencyException() override;
unsigned GetLine() const { return line; }
private:
std::unique_ptr< AudacityException > Move() override;

View File

@ -1869,7 +1869,8 @@ void Sequence::ConsistencyCheck
if ( bError )
{
wxLogError(wxT("*** Consistency check failed after %s. ***"), whereStr);
wxLogError(wxT("*** Consistency check failed at %d after %s. ***"),
ex.GetLine(), whereStr);
wxString str;
DebugPrintf(mBlock, mNumSamples, &str);
wxLogError(wxT("%s"), str.c_str());
@ -1877,9 +1878,9 @@ void Sequence::ConsistencyCheck
wxT("Recommended course of action:\n")
wxT("Undo the failed operation(s), then export or save your work and quit."));
if (mayThrow)
throw ex;
else
//if (mayThrow)
//throw ex;
//else
wxASSERT(false);
}
}