From: apo Date: Fri, 30 May 2008 10:09:26 +0000 (+0000) Subject: Fix for Bug IPAL17668 X-Git-Tag: V4_1_3rc1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=296354f5c97835c144273441317c852d8240e427;p=modules%2Fvisu.git Fix for Bug IPAL17668 - TC71: REGR: copy object leads to fatal error and unknown exception < anInputFileStream>>aLocalPersistentID; --- > std::ostrstream anOutputStream; > anInputFileStream >> anOutputStream.rdbuf(); > aLocalPersistentID = anOutputStream.str(); --- diff --git a/src/VISU_I/VISU_Gen_i.cc b/src/VISU_I/VISU_Gen_i.cc index ec0c6d66..7a6a0016 100644 --- a/src/VISU_I/VISU_Gen_i.cc +++ b/src/VISU_I/VISU_Gen_i.cc @@ -1395,7 +1395,9 @@ namespace VISU { std::string aCopyPersist = aTmpDir + "copy_persistent"; std::ifstream anInputFileStream(aCopyPersist.c_str()); - anInputFileStream>>aLocalPersistentID; + std::ostrstream anOutputStream; + anInputFileStream >> anOutputStream.rdbuf(); + aLocalPersistentID = anOutputStream.str(); anInputFileStream.close(); }