]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx
Bug #1682 Crash deleting the actual connection creation
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GPortModel.cxx
index 5e307213c78ce2599e5a5b88bf38c9a1ad828528..20caad2c738f73dc6c8c45fe58c98456b7baad6d 100644 (file)
@@ -46,12 +46,14 @@ namespace bbtk {
     //=========================================================================
 
     GPortModel::GPortModel( ) {
-        _parentBox = NULL ;
-        _portType = -1 ;
-        _posInBox = 0 ;
-        _isConnected = false ;
-        _value = "" ;
-        _isValueSet = false ;
+        _parentBox             = NULL ;
+        _portType              = -1 ;
+        _posInBox              = 0 ;
+        _isConnected   = false ;
+        _value                 = "" ;
+        _isValueSet            = false ;
+
+
     }
 
     //=========================================================================
@@ -61,12 +63,10 @@ namespace bbtk {
     //=========================================================================
 
     void GPortModel::registerInBox( GBoxModel *blackBox , int portType , int pos ) {
-        _parentBox = blackBox ;
-        _portType = portType ;
-        _posInBox = pos ;
-
+        _parentBox     = blackBox ;
+        _portType      = portType ;
+        _posInBox      = pos ;
         updatePortPosition( ) ;
-
     }
 
     //=========================================================================
@@ -127,7 +127,7 @@ namespace bbtk {
     //=========================================================================
 
     GBoxModel* GPortModel::getParentBox( ) {
-        return _parentBox ;
+        return _parentBox;
     }
 
     //=========================================================================