]> git.lyx.org Git - features.git/commitdiff
Fix bug 4517.
authorRichard Heck <rgheck@comcast.net>
Sat, 26 Jan 2008 20:02:30 +0000 (20:02 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 26 Jan 2008 20:02:30 +0000 (20:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22681 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index ef90163f34f802c962c544e95eff2b3a472c8d8d..966ad3a2d1e49f5fdd1cf6e82c0c408b1fb62902 100644 (file)
@@ -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();