X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxMPRWidget2.cxx;h=a4d48213f71bc5927c1131904384588743f370f7;hb=25e3adf442d6a8d357d52410267445c54426c525;hp=6757a1882da05e00759ccae60ead7db8bf390fd3;hpb=e4ef2b5df5aac431ff3b806f83b7dd5e55e89d86;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMPRWidget2.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMPRWidget2.cxx index 6757a18..a4d4821 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMPRWidget2.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMPRWidget2.cxx @@ -30,8 +30,8 @@ //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- -wxMPRWidget2::wxMPRWidget2(wxWindow* parent,marImageData *marimagedata,double voxelSize) -: wxMPRWidget(parent,marimagedata,voxelSize) +wxMPRWidget2::wxMPRWidget2(wxWindow* parent,marImageData *marimagedata) +: wxMPRWidget(parent,marimagedata) { } //---------------------------------------------------------------------------- @@ -42,5 +42,11 @@ wxMPRWidget2::~wxMPRWidget2() void wxMPRWidget2::OnRefreshView(wxCommandEvent & event) // Virtual { wxCommandEvent newevent1(wxEVT_COMMAND_MENU_SELECTED,12121); // Refresh +//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0 +#if wxMAJOR_VERSION <= 2 this->GetParent()->ProcessEvent(newevent1); +#else + this->GetParent()->ProcessWindowEvent(newevent1); +#endif + }