1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 14:18:53 +02:00

Fix for bug 444 (P2). This bug was introduced by r8092. In initial state, mManager->GetCurrentState() returns 1, so 1-1 = 0 for the max value *is* less than the given min value of 1. It should have produced the same error on all platforms.

This commit is contained in:
v.audacity 2011-08-26 23:44:43 +00:00
parent 535e71e405
commit 604668986e

View File

@ -95,9 +95,9 @@ HistoryWindow::HistoryWindow(AudacityProject *parent, UndoManager *manager):
wxDefaultPosition, wxDefaultPosition,
wxDefaultSize, wxDefaultSize,
wxSP_ARROW_KEYS, wxSP_ARROW_KEYS,
1, 0,
mManager->GetCurrentState() - 1, mManager->GetCurrentState() - 1,
1); 0);
S.AddWindow(mLevels); S.AddWindow(mLevels);
mDiscard = S.Id(ID_DISCARD).AddButton(_("&Discard")); mDiscard = S.Id(ID_DISCARD).AddButton(_("&Discard"));
} }