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:
parent
2068662954
commit
6e72aed6a5
@ -45,6 +45,8 @@ public:
|
||||
|
||||
~InconsistencyException() override;
|
||||
|
||||
unsigned GetLine() const { return line; }
|
||||
|
||||
private:
|
||||
std::unique_ptr< AudacityException > Move() override;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user