From: asv Date: Mon, 31 Jan 2005 06:00:04 +0000 (+0000) Subject: Fix for bug PAL78476: when out-port is added to study, it must try to put its value... X-Git-Tag: V2_2_0b2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e86d1a5b9640338b060347b157bfe4c731c27e19;p=modules%2Fsuperv.git Fix for bug PAL78476: when out-port is added to study, it must try to put its value to study right at the moment of "put" command. After that, it will be added to study in Main::execute() method on "Done" event from a node. --- diff --git a/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx b/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx index e5cd954..859611e 100644 --- a/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx +++ b/src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx @@ -297,9 +297,11 @@ void SUPERVGUI_CanvasPortOut::toStudy() return; } - if (!getMain()->isFromStudy()) { - if (getMain()->addStudy()) - getMain()->setAsFromStudy(true); + if ( !getMain()->isFromStudy() ) { + if ( getMain()->addStudy() ) { + getMain()->setAsFromStudy( true ); // put an "computation" item under "Supervisor" item in the Study tree + getMain()->putDataStudy( getEngine(), STUDY_PORT_OUT ); // put another new item under some another corresponding item + } // GEOM -> Compound_1 } myInStudy = !myInStudy; sync();