]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/GBoxController.cxx
BUG 1504
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / GBoxController.cxx
index 52e80a2f493eb9f5c76594a0d6b3156f7cafe0d7..da3336334faf938db197fb1e7bb2460779431642 100644 (file)
@@ -36,6 +36,9 @@ Version:   $Revision$
 
 #include "GBoxController.h"
 
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
 namespace bbtk
 {
 
@@ -92,7 +95,6 @@ namespace bbtk
        bool GBoxController::OnLeftButtonDown()
        {
            bool ok=true;
-printf("EED GBoxController::OnLeftButtonDown \n");
                int state  = _view->getState();
 
                //Evaluate new state
@@ -101,7 +103,8 @@ printf("EED GBoxController::OnLeftButtonDown \n");
                    ok=false;
                        _isLeftClickDown=true;
                        _view->setState(SELECTED);
-                       _model->notifyObservers(getId(),ADD_TO_SELECTED);
+//                     _model->notifyObservers(getId(),ADD_TO_SELECTED);
+                       _model->notifyObservers(getId());
                }
                return ok;