From 204c47b848db693715bc73e56eb4bd94c7bb8e9c Mon Sep 17 00:00:00 2001 From: skt Date: Fri, 18 Aug 2006 08:32:34 +0000 Subject: [PATCH] SWP12966 - MutiFile is not saved correctly Fix in GetDirFromPath() - correct directory path generation --- src/SALOMEDSImpl/SALOMEDSImpl_Tool.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Tool.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Tool.cxx index 46529552b..4755e3c07 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Tool.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Tool.cxx @@ -156,7 +156,12 @@ TCollection_AsciiString SALOMEDSImpl_Tool::GetNameFromPath(const TCollection_Asc TCollection_AsciiString SALOMEDSImpl_Tool::GetDirFromPath(const TCollection_AsciiString& thePath) { if (thePath.IsEmpty()) return ""; OSD_Path aPath = OSD_Path(thePath); - TCollection_AsciiString aDirString(aPath.Trek()); + TCollection_AsciiString aDirString; + /*Unix platform don't use assignment in string + but we must to add it for WNT case*/ + TCollection_AsciiString disk = aPath.Disk(); + if(disk.Length()) aDirString.AssignCat(disk); + aDirString.AssignCat(aPath.Trek()); aDirString.ChangeAll('|','/'); return aDirString; } -- 2.39.2