From: mpv Date: Tue, 1 Feb 2005 11:25:40 +0000 (+0000) Subject: MPV: X-Git-Tag: V2_2_0~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2634c26b9d43e701191b55f4474890a3c799e50a;p=modules%2Fkernel.git MPV: Correct creation of the study file-paths for multi-file saving. Fix for bug PAL7827 --- 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'):