]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
MPV:
authormpv <mpv@opencascade.com>
Tue, 1 Feb 2005 11:25:40 +0000 (11:25 +0000)
committermpv <mpv@opencascade.com>
Tue, 1 Feb 2005 11:25:40 +0000 (11:25 +0000)
Correct creation of the study file-paths for multi-file saving.
Fix for bug PAL7827

src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx

index c6b74d1318669ae5709f671109cde56e66825bed..42aefe220b73c65b09706de678d7ddaa08d4bfa8 100644 (file)
@@ -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'):