From: rahuel Date: Thu, 9 Jun 2005 09:35:52 +0000 (+0000) Subject: PAL9133 : allow empty string as Input of ports in xml files X-Git-Tag: T2_2_4a3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e6b1bd01439e806d3fe168f7a3eb981f6886bfe7;p=modules%2Fsuperv.git PAL9133 : allow empty string as Input of ports in xml files --- diff --git a/src/GraphEditor/DataFlowEditor_OutNode.cxx b/src/GraphEditor/DataFlowEditor_OutNode.cxx index e0dfda4..eede7c4 100644 --- a/src/GraphEditor/DataFlowEditor_OutNode.cxx +++ b/src/GraphEditor/DataFlowEditor_OutNode.cxx @@ -1108,10 +1108,13 @@ bool GraphEditor::OutNode::LinkSaveXML( QDomDocument & Graph , QDomElement & lin case CORBA::tk_string: { char* retstr ; aLink.aLinkValue >>= retstr; -// f << Tabs << " " << retstr << "" << endl ; QDomElement value = Graph.createElement( "value" ) ; - aField = Graph.createTextNode( retstr ) ; - datavalue.appendChild( value ) ; +//PAL9133 Debug JR : accept void strings + QDomCDATASection aCDATA = Graph.createCDATASection( retstr ) ; +// aField = Graph.createTextNode( retstr ) ; + aField = Graph.createCDATASection( retstr ) ; + datavalue.appendChild( aCDATA ) ; +// datavalue.appendChild( value ) ; value.appendChild( aField ) ; // MESSAGE( "ToString( string ) " << retstr ); break ;