From: smh Date: Fri, 7 May 2004 12:31:21 +0000 (+0000) Subject: PAL5842, PAL5844, PAL5850 X-Git-Tag: Ecole_Ete_a4~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=70238ce799b0688b8a5c4cf59b57451b30849dbd;p=modules%2Fsuperv.git PAL5842, PAL5844, PAL5850 --- diff --git a/src/GraphBase/DataFlowBase_ComputingNode.cxx b/src/GraphBase/DataFlowBase_ComputingNode.cxx index dea0738..7cf9bfa 100644 --- a/src/GraphBase/DataFlowBase_ComputingNode.cxx +++ b/src/GraphBase/DataFlowBase_ComputingNode.cxx @@ -550,7 +550,9 @@ bool GraphBase::ComputingNode::SaveXML( QDomDocument & Graph , QDomElement & inf // f << Tabs << "" << (int ) Kind() << "" << endl ; QDomElement kind = Graph.createElement( "kind" ) ; QString aKind ; - if ( IsDataFlowNode() || ( IsDataStreamNode() && HasDataStream() == 0 ) ) { + + // san - Presumably, data stream graphs should be always saved with kind = DataStreamGraph + if ( IsDataFlowNode() /*|| ( IsDataStreamNode() && HasDataStream() == 0 )*/ ) { aKind = aKind.setNum( SUPERV::DataFlowGraph ) ; } else { @@ -916,7 +918,8 @@ bool GraphBase::ComputingNode::SavePY( ostream &f , const char * aGraphName , const ListOfFuncName FuncNames , const ListOfPythonFunctions PythonFunctions , int XCoordinate , int YCoordinate ) const { - if ( IsDataFlowNode() || ( IsDataStreamNode() && HasDataStream() == 0 ) ) { + // san - Presumably, data stream graphs should be always saved with kind = DataStreamGraph + if ( IsDataFlowNode() /*|| ( IsDataStreamNode() && HasDataStream() == 0 )*/ ) { f << Name() << " = Graph( '" << Name() << "' )" << endl ; } else if ( IsDataStreamNode() ) {