]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug IPAL17668
authorapo <apo@opencascade.com>
Fri, 30 May 2008 10:09:26 +0000 (10:09 +0000)
committerapo <apo@opencascade.com>
Fri, 30 May 2008 10:09:26 +0000 (10:09 +0000)
 - TC71: REGR: copy object leads to fatal error and unknown exception

<       anInputFileStream>>aLocalPersistentID;
---
>       std::ostrstream anOutputStream;
>       anInputFileStream >> anOutputStream.rdbuf();
>       aLocalPersistentID = anOutputStream.str();

src/VISU_I/VISU_Gen_i.cc

index ec0c6d66abc97ec29b51ec9b665f6a3b49d63e5d..7a6a00162752213b7c955fe18eabe987cf9d6817 100644 (file)
@@ -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();
     }