Salome HOME
Fix for bug IPAL9558 : Maintainance Mandrake porting: black rectangle in table view.
[modules/superv.git] / src / GraphBase / DataFlowBase_XmlHandler.cxx
index 7578329fa25b547ee96ac882ecf538ebe6346756..829889c5329d8f66d729d364fda18fad7fc6020a 100644 (file)
@@ -357,7 +357,7 @@ bool GraphBase::XmlHandler::endElement( const QString&,
           else if ( qName == "streamgraph-deltatime" ) {
             if ( fieldvalue[depth] == NULLSTRING )
               return returnfalse( this , "depth3-3" , qName ) ;
-            sscanf( fieldvalue[depth].c_str() ,"%lf" , (int * ) &aNode.theDeltaTime ) ;
+            sscanf( fieldvalue[depth].c_str() ,"%lf" , (double * ) &aNode.theDeltaTime ) ;
             fieldvalue[depth] = NULLSTRING ;
             step[depth]++ ;
             step[4] = 0 ;
@@ -709,7 +709,7 @@ bool GraphBase::XmlHandler::endElement( const QString&,
             aLink.aLinkValue = CORBA::Any() ;
             switch ( Kind ) {
             case CORBA::tk_string: {
-              aLink.aLinkValue <<= (char *) NULL ;
+              aLink.aLinkValue <<= (char *) "";
               char * t;
               aLink.aLinkValue >>= t;
 #if TRACE