From 2634c26b9d43e701191b55f4474890a3c799e50a Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 1 Feb 2005 11:25:40 +0000 Subject: [PATCH] MPV: Correct creation of the study file-paths for multi-file saving. Fix for bug PAL7827 --- src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx b/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx index c6b74d131..42aefe220 100644 --- a/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx +++ b/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx @@ -412,7 +412,7 @@ void SALOMEDS_StudyBuilder_i::LoadWith(SALOMEDS::SComponent_ptr theSComponent, // set path without file name from URL std::string aDir(aHDFPath.ToCString()); - aDir.substr(0,aDir.find('/')); + aDir = aDir.substr(0,aDir.rfind('/') + 1); CORBA::Boolean aResult = (ASCIIfileState[0]=='A')? theDriver->LoadASCII(theSComponent, aStreamFile.in(), aDir.c_str(), aMultifileState[0]=='M'): -- 2.39.2