Salome HOME
Fix for IPAL10175 : Result of Dataflow execution is not add in study.
authormkr <mkr@opencascade.com>
Fri, 7 Oct 2005 08:46:23 +0000 (08:46 +0000)
committermkr <mkr@opencascade.com>
Fri, 7 Oct 2005 08:46:23 +0000 (08:46 +0000)
src/SUPERVGUI/SUPERVGUI_Main.cxx

index c404cebc7ed4c01c4ed710f8f6611eead0d6d379..0b858393313d41daee986941dc092f606351501a 100644 (file)
@@ -1069,10 +1069,18 @@ bool SUPERVGUI_Main::putDataStudy( SUPERV_Port p, const char* inout ) {
        }
       }
       else { // FNode is NULL -> bad
-       MESSAGE( "FNode is NULL.  Not good at all.  Aborting command." );
-       aBuilder->AbortCommand();
-       isIn = false;
-       return false;
+       MESSAGE( "FNode is NULL." );
+       if ( SUPERV::INode::_narrow( p->Node() ) ) { // mkr : IPAL10175
+         _PTR(SObject) anIORSO ( aStudy->FindObjectIOR( p->ToString() ) );
+         if ( anIORSO )
+           aBuilder->Addreference(aSO, anIORSO);
+       }
+       else {
+         MESSAGE( "FNode and INode are NULL.  Not good at all.  Aborting command." );
+         aBuilder->AbortCommand();
+         isIn = false;
+         return false;
+       }
       }
     } 
     else {