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:
parent
535e71e405
commit
604668986e
@ -95,9 +95,9 @@ HistoryWindow::HistoryWindow(AudacityProject *parent, UndoManager *manager):
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize,
|
||||
wxSP_ARROW_KEYS,
|
||||
1,
|
||||
0,
|
||||
mManager->GetCurrentState() - 1,
|
||||
1);
|
||||
0);
|
||||
S.AddWindow(mLevels);
|
||||
mDiscard = S.Id(ID_DISCARD).AddButton(_("&Discard"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user