From: dmv Date: Wed, 27 Oct 2010 06:38:04 +0000 (+0000) Subject: Win32: Problem with loading ASCII study X-Git-Tag: mergeto_V5_1_main_13Nov10~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=04bf4c131cc857473c46e77fd93841f578b7231f;p=modules%2Fvisu.git Win32: Problem with loading ASCII study --- diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index a0315f5c..0f7b02ba 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -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;