diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index 2ab9be0b0d..789e950f95 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -60,8 +60,11 @@ wxCommandProcessor::wxCommandProcessor(int maxCommands) #if wxUSE_MENUS m_commandEditMenu = NULL; #endif // wxUSE_MENUS + +#if wxUSE_ACCEL m_undoAccelerator = '\t' + wxAcceleratorEntry(wxACCEL_CTRL, 'Z').ToString(); m_redoAccelerator = '\t' + wxAcceleratorEntry(wxACCEL_CTRL, 'Y').ToString(); +#endif // wxUSE_ACCEL m_lastSavedCommand = m_currentCommand = wxList::compatibility_iterator();