From e86d1a5b9640338b060347b157bfe4c731c27e19 Mon Sep 17 00:00:00 2001 From: asv Date: Mon, 31 Jan 2005 06:00:04 +0000 Subject: [PATCH] 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. --- src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(); -- 2.39.2