Salome HOME
Fix for bug PAL12309 : Problem on Import/Export XML in SUPERV.
authormkr <mkr@opencascade.com>
Wed, 3 May 2006 15:09:21 +0000 (15:09 +0000)
committermkr <mkr@opencascade.com>
Wed, 3 May 2006 15:09:21 +0000 (15:09 +0000)
src/GraphBase/DataFlowBase_XmlHandler.cxx

index 01fe6d9d7eac643480b10143b65fee52738fa07b..2c8dcda4946cadd8a745cec44a3c58263ccf6384 100644 (file)
@@ -1117,8 +1117,9 @@ bool GraphBase::XmlHandler::endElement( const QString&,
           break ;
         case 9 :
           if ( qName == "PyFunc" ) {
-            if ( fieldvalue[depth] == NULLSTRING )
-              return returnfalse( this , "depth5-9" , qName ) ;
+           // mkr : commented for PAL12309 (the function body can contains spaces, tabs, etc.)
+           //if ( fieldvalue[depth] == NULLSTRING )
+            //  return returnfalse( this , "depth5-9" , qName ) ;
             int l = aNode.theListOfPythonFunctions.size() - 1 ;
             SUPERV::ListOfStrings aPythonFunction = *aNode.theListOfPythonFunctions[ l ] ;
             int ll = aPythonFunction.length() ;