X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4ed40684b46c71bcff8d11242c84043e2602ce58..56b9925b116dfa58028fccb2556852f2da2ab9ac:/src/common/cmdproc.cpp diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index f85b076762..08f414c171 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "cmdproc.h" #endif @@ -69,6 +69,9 @@ wxCommandProcessor::wxCommandProcessor(int maxCommands) #endif // wxUSE_MENUS m_undoAccelerator = wxT("\tCtrl+Z"); m_redoAccelerator = wxT("\tCtrl+Y"); +#if !wxUSE_STL + m_currentCommand = NULL; +#endif } wxCommandProcessor::~wxCommandProcessor()