]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Win32: Problem with loading ASCII study
authordmv <dmv@opencascade.com>
Wed, 27 Oct 2010 06:38:04 +0000 (06:38 +0000)
committerdmv <dmv@opencascade.com>
Wed, 27 Oct 2010 06:38:04 +0000 (06:38 +0000)
src/VISU_I/VISU_Result_i.cc

index a0315f5ccc663d48a077daffafa4bb3d6d617b78..0f7b02baac50747f25c98015f400a3bc06a80905 100644 (file)
@@ -769,6 +769,13 @@ VISU::Result_i
 
   try {
     myFileName = VISU::Storable::FindValue(theMap, "myName").toLatin1().data();
+#ifdef WIN32
+       for (int i = 0; i < myFileName.length(); i++)
+       {
+               if (myFileName[i] == ':')
+                       myFileName[i] = '_';
+       }
+#endif
     SetInitFileName(VISU::Storable::FindValue(theMap, "myInitFileName").toLatin1().data());
     
     SALOMEDS::SObject_var aRefSObj, aTargetRefSObj;