]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for bug PAL78476: when out-port is added to study, it must try to put its value...
authorasv <asv@opencascade.com>
Mon, 31 Jan 2005 06:00:04 +0000 (06:00 +0000)
committerasv <asv@opencascade.com>
Mon, 31 Jan 2005 06:00:04 +0000 (06:00 +0000)
src/SUPERVGUI/SUPERVGUI_CanvasPort.cxx

index e5cd95440f6780afbffd5dd032f77db7b9169ac7..859611ee6c7f6478240952cb9cd3c881ff2414c9 100644 (file)
@@ -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();