Correct a use of wx event handling, which should also make FrameMain not require friend access to AudioDisplay.

Originally committed to SVN as r3442.
This commit is contained in:
Niels Martin Hansen 2009-08-28 21:15:39 +00:00
parent 28a79d49ac
commit b1225cdd1f
1 changed files with 1 additions and 1 deletions

View File

@ -1787,7 +1787,7 @@ void FrameMain::OnStatusClear(wxTimerEvent &event) {
/// @param event
///
void FrameMain::OnKeyDown(wxKeyEvent &event) {
audioBox->audioDisplay->AddPendingEvent(event);
audioBox->audioDisplay->GetEventHandler()->ProcessEvent(event);
event.Skip();
}