]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GPortModel.cxx
Stable version ... The connection is correctly painted :)
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GPortModel.cxx
index 50b0fd6c39c8aa4abc1ef6bd4900adde01ddb594..227b31320c26224f6fbd15ef31c97fb2b7a7c87c 100644 (file)
@@ -75,11 +75,11 @@ namespace bbtk
                double posX=xInic,posY=yInic,posZ=zInic;
                if(_portType==GOUTPUTPORT)
                {
-                       posY = yInic+PORT_HEIGHT;
+                       posY = yFin;
                }
                else if(_portType==GINPUTPORT)
                {
-                       posY = yFin;
+                       posY = yInic+PORT_HEIGHT;
                }
 
                //Attribute '_posInBox' starts with value 0 and it represents the position of the port in the box from left to right
@@ -92,8 +92,7 @@ namespace bbtk
 
                setFinalPoint(posX,posY,posZ);          
                
-               setChanged();
-               notifyObservers();
+               //notifyObservers();
        }
 
        //=========================================================================