From 04bf4c131cc857473c46e77fd93841f578b7231f Mon Sep 17 00:00:00 2001 From: dmv Date: Wed, 27 Oct 2010 06:38:04 +0000 Subject: [PATCH] Win32: Problem with loading ASCII study --- src/VISU_I/VISU_Result_i.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.39.2