]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxMPRWidget2.cxx
#3263 creaMaracasVisu Feature New Normal - ViewerNV sync ParallelScale Camera
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxMPRWidget2.cxx
index 6757a1882da05e00759ccae60ead7db8bf390fd3..a4d48213f71bc5927c1131904384588743f370f7 100644 (file)
@@ -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
+
 }