From 20a5e94a861e036e841c5faef15da766f7df2fa2 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 26 Jan 2008 20:02:30 +0000 Subject: [PATCH] Fix bug 4517. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22681 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LyXFunc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); -- 2.39.2