Fixed a BUG where if in a PATH was something like ;; the scan for the

binary was interupted.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@182 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 1999-10-11 08:23:12 +00:00
parent 457cfb113a
commit 2a3a654917
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
1999-10-08 Jürgen Vigna <jug@sad.it>
* src/support/filetools.C (FileOpenSearch): Fixed a bug where
when in the PATH was something like /usr/bin;;/bin (note: the ;;)
it returned without continuing to search the path.
1999-10-07 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/insets/insetquotes.C (Draw): Simplified a gread deal. This

View File

@ -201,7 +201,9 @@ string FileOpenSearch (string const & path, string const & name,
real_file = FileSearch(path_element, name, ext);
if (real_file.empty()) {
tmppath = split(tmppath, path_element, ';');
do {
tmppath = split(tmppath, path_element, ';');
} while(!tmppath.empty() && path_element.empty());
} else {
notfound = false;
}