From 70238ce799b0688b8a5c4cf59b57451b30849dbd Mon Sep 17 00:00:00 2001 From: smh Date: Fri, 7 May 2004 12:31:21 +0000 Subject: [PATCH] PAL5842, PAL5844, PAL5850 --- src/GraphBase/DataFlowBase_ComputingNode.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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() ) { -- 2.39.2