compilation fix: WXWIN_COMPATIBILITY_2_8 must be tested with #if, not #ifdef
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1307,7 +1307,7 @@ bool wxEvtHandler::DoTryApp(wxEvent& event)
|
||||
|
||||
bool wxEvtHandler::TryBefore(wxEvent& event)
|
||||
{
|
||||
#ifdef WXWIN_COMPATIBILITY_2_8
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
// call the old virtual function to keep the code overriding it working
|
||||
return TryValidator(event);
|
||||
#else
|
||||
@@ -1318,7 +1318,7 @@ bool wxEvtHandler::TryBefore(wxEvent& event)
|
||||
|
||||
bool wxEvtHandler::TryAfter(wxEvent& event)
|
||||
{
|
||||
#ifdef WXWIN_COMPATIBILITY_2_8
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
// as above, call the old virtual function for compatibility
|
||||
return TryParent(event);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user