From e6b1bd01439e806d3fe168f7a3eb981f6886bfe7 Mon Sep 17 00:00:00 2001 From: rahuel Date: Thu, 9 Jun 2005 09:35:52 +0000 Subject: [PATCH] PAL9133 : allow empty string as Input of ports in xml files --- src/GraphEditor/DataFlowEditor_OutNode.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 ; -- 2.39.2