X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxPanelCuttingImageData.cxx;h=af20535fb7f48826e81c29c70ae9c2ab110c9360;hb=63ee187ed08495d67c09ebb243227175f144615d;hp=f656c94742bae153779ad0e5866c354595881efc;hpb=d5e0666e18ece9462fa780e06a3b3a541266363c;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxPanelCuttingImageData.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxPanelCuttingImageData.cxx index f656c94..af20535 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxPanelCuttingImageData.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxPanelCuttingImageData.cxx @@ -37,11 +37,11 @@ wxPanelCuttingImageData::wxPanelCuttingImageData (wxWindow *parent) : wxPanel( parent, -1) { - _imageData=NULL; - _histogrammeVector=NULL; - _wxvtk3Dbaseview=NULL; - _wxvtkbaseView=NULL; - CreateInterface(); + _imageData = NULL; + _histogrammeVector = NULL; + _wxvtk3Dbaseview = NULL; + _wxvtkbaseView = NULL; + CreateInterface() ; CreateModel(); Create3DViewObjects(); } @@ -530,7 +530,12 @@ void wxPanelCuttingImageData::OnExtract(wxCommandEvent& event) // _wxvtkbaseView->RefreshView(); wxCommandEvent newevent1(wxEVT_COMMAND_MENU_SELECTED,12121); // Refresh +//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0 +#if wxMAJOR_VERSION <= 2 _wxvtkbaseView->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent1); +#else + _wxvtkbaseView->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessWindowEvent(newevent1); +#endif }