X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FvtkInteractorStyleSphere.cxx;h=177534ef86ba40be2ff8733c87feee97b1881007;hb=80b04dc9e3b981e24fe9ae0d81cdeb8af6e6f8c1;hp=54a7f734443491413e64d40eb3f7aab0e7f2aa67;hpb=b80b4dcc301c1c2c63c0f76cd06b0a434350f7a7;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleSphere.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleSphere.cxx index 54a7f73..177534e 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleSphere.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleSphere.cxx @@ -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(); }