From: mzn Date: Tue, 20 Feb 2007 09:53:13 +0000 (+0000) Subject: Fix for NPAL14919(EDF 369 SUPERV : SIGSEGV after Display of a graph in the object... X-Git-Tag: V3_2_6a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dfaa6c65663462e8bad2815b8cd214fd48ff0852;p=modules%2Fsuperv.git Fix for NPAL14919(EDF 369 SUPERV : SIGSEGV after Display of a graph in the object browser if same name in InPort and OutPort). --- diff --git a/src/SUPERVGUI/SUPERVGUI_Main.cxx b/src/SUPERVGUI/SUPERVGUI_Main.cxx index 2411112..9daf3ae 100644 --- a/src/SUPERVGUI/SUPERVGUI_Main.cxx +++ b/src/SUPERVGUI/SUPERVGUI_Main.cxx @@ -74,7 +74,7 @@ using namespace boost; SUPERV::Port_ptr aPort = aPortList[p].in(); \ if ( !aPort->IsInput() && !aPort->IsGate() ) { \ bool aInStudy = dynamic_cast( aMain->getCanvas()->getPort(aPort) )->isInStudy(); \ - dynamic_cast( getCanvas()->getPort( getDataflow()->Node(aCNode->Name())->Port(aPort->Name()) ) )->setStudyState(aInStudy); \ + dynamic_cast( getCanvas()->getPort( getDataflow()->Node(aCNode->Name())->GetOutPort(aPort->Name()) ) )->setStudyState(aInStudy); \ } \ } \ }