1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-09 13:12:17 +01:00

Correcting the layout of EQ freq ruler (borders, off-by-ones).

Avoid an unnecessary alert in Envelope.
This commit is contained in:
martynshaw99
2010-03-23 01:27:12 +00:00
parent 69b6d2a0cd
commit 3ee3c168e6
4 changed files with 25 additions and 16 deletions

View File

@@ -952,7 +952,7 @@ int Envelope::Insert(double when, double value)
{
#if defined(__WXDEBUG__)
// in debug builds, do a spot of argument checking
if(when > mTrackLen)
if(when > mTrackLen + 0.0000001)
{
wxString msg;
msg = wxString::Format(wxT("when %.20f mTrackLen %.20f diff %.20f"), when, mTrackLen, when-mTrackLen);