]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GConnectorController.cxx
BUG 1505
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / GConnectorController.cxx
index 40a1a343548494603465d32d5e1a6575e8304c2e..563d1d0574b9432da0b42a2e780fc15ce4fb5a08 100644 (file)
@@ -60,6 +60,11 @@ namespace bbtk
        bool GConnectorController::OnMouseMove()
        {
 
+               if (_view->getState() ==SELECTED)
+               {
+                       _controller->GetManualViewBaseContour()->SetSelected(true);
+               }
+               
                if ( _vtkInteractorStyleBaseView!=NULL)
                {
                        int X,Y;
@@ -166,7 +171,7 @@ namespace bbtk
        {
                if ( _vtkInteractorStyleBaseView!=NULL )
                {
-                       int X,Y,Z=900;
+                       int X, Y, Z=GPOSITION_Z;
                        wxVTKRenderWindowInteractor *wxVTKiren;
                        wxVTKiren = _vtkInteractorStyleBaseView->GetWxVtk3DBaseView()->GetWxVTKRenderWindowInteractor();
                        wxVTKiren->GetEventPosition(X, Y);