Revert last commit. I am not sure that is the right fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22683 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-01-26 20:06:31 +00:00
parent 27a843bf0f
commit 2671470085

View File

@ -2055,9 +2055,8 @@ void LyXFunc::open(string const & fname)
filename = fname; filename = fname;
// get absolute path of file and add ".lyx" to the filename if // get absolute path of file and add ".lyx" to the filename if
// necessary. we allow_unreadable because the file may not exist. // necessary
FileName const fullname = FileName const fullname = fileSearch(string(), filename, "lyx");
fileSearch(string(), filename, "lyx", support::allow_unreadable);
if (!fullname.empty()) if (!fullname.empty())
filename = fullname.absFilename(); filename = fullname.absFilename();