Salome HOME
projects
/
modules
/
yacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fb9ca8
)
MPV:
author
mpv
<mpv@opencascade.com>
Tue, 1 Feb 2005 11:25:40 +0000
(11:25 +0000)
committer
mpv
<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
patch
|
blob
|
history
diff --git
a/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx
b/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx
index c6b74d1318669ae5709f671109cde56e66825bed..42aefe220b73c65b09706de678d7ddaa08d4bfa8 100644
(file)
--- 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'):