From: Richard Heck Date: Sat, 26 Jan 2008 20:02:30 +0000 (+0000) Subject: Fix bug 4517. X-Git-Tag: 1.6.10~6519 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=20a5e94a861e036e841c5faef15da766f7df2fa2;p=features.git Fix bug 4517. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22681 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/LyXFunc.cpp b/src/LyXFunc.cpp index ef90163f34..966ad3a2d1 100644 --- a/src/LyXFunc.cpp +++ b/src/LyXFunc.cpp @@ -1930,8 +1930,9 @@ void LyXFunc::open(string const & fname) filename = fname; // get absolute path of file and add ".lyx" to the filename if - // necessary - FileName const fullname = fileSearch(string(), filename, "lyx"); + // necessary. we allow_unreadable because the file may not exist. + FileName const fullname = + fileSearch(string(), filename, "lyx", support::allow_unreadable); if (!fullname.empty()) filename = fullname.absFilename();