]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
PAL9133 : allow empty string as Input of ports in xml files T2_2_4a3
authorrahuel <rahuel@opencascade.com>
Thu, 9 Jun 2005 09:35:52 +0000 (09:35 +0000)
committerrahuel <rahuel@opencascade.com>
Thu, 9 Jun 2005 09:35:52 +0000 (09:35 +0000)
src/GraphEditor/DataFlowEditor_OutNode.cxx

index e0dfda434566994cda13652263df5710dec001f1..eede7c41e4034562eb60de99de458654880d4acb 100644 (file)
@@ -1108,10 +1108,13 @@ bool GraphEditor::OutNode::LinkSaveXML( QDomDocument & Graph , QDomElement & lin
       case CORBA::tk_string: {
         char* retstr ;
         aLink.aLinkValue >>= retstr;
-//        f << Tabs << "       <value>" << retstr << "</value>" << 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 ;