]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleSphere.cxx
#3138 creaMaracasVisu Feature New Normal - branch vtk7itk4wx3
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / vtkInteractorStyleSphere.cxx
index 54a7f734443491413e64d40eb3f7aab0e7f2aa67..177534ef86ba40be2ff8733c87feee97b1881007 100644 (file)
@@ -93,7 +93,13 @@ bool  vtkInteractorStyleSphere::OnLeftButtonUp()
                        _vtkInteractorStyleBaseView->TransformCoordinate(x,y,z);            
                        wxsphereview->SetXYZtoParent(x,y);
                        wxCommandEvent newevent(wxEVT_COMMAND_MENU_SELECTED,12121);
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
                        wxsphereview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessEvent(newevent);
+#else
+                       wxsphereview->GetWxVTKRenderWindowInteractor()->GetParent()->ProcessWindowEvent(newevent);
+#endif
+
                } else {
                        wxsphereview->RotationEnd();
                }