]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuSetPosition.cxx
3219 creaMaracasVisu Feature New Normal - vtk8itk4wx3-mingw64
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuSetPosition.cxx
index 8b23084c1cf2beb7f53e58f73d596bdb90dbe297..a76bc22807c4255409f07493d6696d325e6b7ec6 100644 (file)
@@ -41,7 +41,14 @@ void SetPosition::Process()
                        vtkmprbasedata->SetY( bbGetInputPoint()[1] );
                        vtkmprbasedata->SetZ( bbGetInputPoint()[2] );
                        wxCommandEvent newevent(wxEVT_COMMAND_MENU_SELECTED,12121);  // Refres
+//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
+#if wxMAJOR_VERSION <= 2
                        bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessEvent( newevent );
+#else
+                       bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessWindowEvent( newevent );
+#endif 
+                       
+                       
                } // if bbGetInputPosition
        } // bbGetInputwxVtkBaseView
 }