]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for bug NPAL14823 : Inconsistency betweek SuperVGUI and SuperVEngine
authormkr <mkr@opencascade.com>
Wed, 14 Feb 2007 06:47:59 +0000 (06:47 +0000)
committermkr <mkr@opencascade.com>
Wed, 14 Feb 2007 06:47:59 +0000 (06:47 +0000)
(allow to sketch link between OutGate and InLine parameter).

src/SUPERVGUI/SUPERVGUI_CanvasLink.cxx

index 70a1e3826177ac2069ffe8aa2cf4cadb4b4e874f..3c957e645eca7c9ef4ed595fd7cfd22230cb0ca1 100644 (file)
@@ -401,7 +401,8 @@ bool SUPERVGUI_CanvasLinkBuilder::canCreateEngine(SUPERVGUI_CanvasPort* thePort)
 
     // asv : 15.12.04 : NOT allow to connect Gate-to-InLine --> it does not make sence!
     // Out Gate port can be connected only to In Gate port 
-    if ( aOutKind == SUPERV::GateParameter && aInKind != SUPERV::GateParameter )
+    // mkr : NPAL14823 : Out Gate port can be connected to Inline port too
+    if ( aOutKind == SUPERV::GateParameter && aInKind != SUPERV::GateParameter && aInKind != SUPERV::InLineParameter )
       return false;
 
     // In Gate can be connected to (receive links from) Gate port and InLine ports (important for Switch nodes)