]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/manualConnectorContourController.cxx
It is possible to center the view to the original point
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / manualConnectorContourController.cxx
index 6a7c06843a49848d15017cbfb02e524b9f3691f1..0a352646e70a6e3d9d6a279def8c2232808c94fa 100644 (file)
@@ -128,7 +128,10 @@ namespace bbtk
                        {
                                ok=true;
                                _bakIdPoint = GetManualViewBaseContour()->GetIdPoint(x,y,z);
-                               SetState(5);
+                               if(_bakIdPoint!=0 && _bakIdPoint!=GetManualViewBaseContour()->GetNumberOfPoints()-1)
+                               {
+                                       SetState(5);
+                               }
                        }
                        // If nothing selected _state=7
                        if ( (GetState()==0) && (GetManualViewBaseContour()->GetIdPoint(x,y,z)==-1 ) )