Ticket #22295: patch-src_MathCtrl.cpp.2.diff

File patch-src_MathCtrl.cpp.2.diff, 862 bytes (added by usami-k@…, 15 years ago)

fixed patch : building with wxWidgets-2.8 and wxWidgets-2.9

  • src/MathCtrl.cpp

    old new  
    11301130    case WXK_BACK:
    11311131      if (CanDeleteSelection()) {
    11321132        wxCommandEvent ev(wxEVT_COMMAND_MENU_SELECTED, popid_delete);
     1133#if wxCHECK_VERSION(2,9,0)
     1134        GetParent()->ProcessWindowEvent(ev);
     1135#else
    11331136        GetParent()->ProcessEvent(ev);
     1137#endif
    11341138      } else
    11351139        event.Skip();
    11361140      break;
     
    11451149            enterEvaluates && !(event.ControlDown() || event.ShiftDown()))
    11461150        { // shift-enter pressed === menu_evaluate event
    11471151          wxCommandEvent ev(wxEVT_COMMAND_MENU_SELECTED, menu_evaluate);
     1152#if wxCHECK_VERSION(2,9,0)
     1153          GetParent()->ProcessWindowEvent(ev);
     1154#else
    11481155          GetParent()->ProcessEvent(ev);
     1156#endif
    11491157        } else
    11501158          event.Skip();
    11511159      }