From 2c4eefc0560ea0a791ff8781f0419654d7d73d73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 14 Dec 2006 16:53:05 +0000 Subject: [PATCH] compilation fix for wxUSE_ACCEL && !wxUSE_BUTTON git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/winuniv.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/univ/winuniv.cpp b/src/univ/winuniv.cpp index 7485272ce9..24e2865a77 100644 --- a/src/univ/winuniv.cpp +++ b/src/univ/winuniv.cpp @@ -1311,6 +1311,7 @@ void wxWindow::OnKeyDown(wxKeyEvent& event) } #endif // wxUSE_MENUS +#if wxUSE_BUTTON // if it wasn't in a menu, try to find a button if ( command != -1 ) { @@ -1326,6 +1327,7 @@ void wxWindow::OnKeyDown(wxKeyEvent& event) } } } +#endif // wxUSE_BUTTON // don't propagate accels from the child frame to the parent one break;