]> git.lyx.org Git - features.git/blobdiff - src/insets/insetinclude.C
various fixes from John, Martin and Kayvan, plus one of mine. Read ChangeLogs
[features.git] / src / insets / insetinclude.C
index e5bdfa473608d710e0f598616be6ec58f7ddcd75..a7f28753ad4df16b3b64488ad8575d86f1c4562e 100644 (file)
@@ -218,7 +218,7 @@ bool InsetInclude::loadIfNeeded() const
        
        // the readonly flag can/will be wrong, not anymore I think.
        FileInfo finfo(getFileName());
-       bool const ro = !finfo.writable();
+       bool const ro = !(!finfo.isOK() || finfo.writable());
        return bufferlist.readFile(getFileName(), ro) != 0;
 }