+2002-03-25 Herbert Voss <voss@lyx.org>
+
+ * insetgraphicsParams.C (Read): prevent LyX from hanging if the
+ graphics file does not exist.
+
2002-03-25 Angus Leeming <a.leeming@ic.ac.uk>
* insetgraphics.C (prepareFile): ensure that the file has an absolute
draft = true;
} else if (token == "display") {
lex.next();
- string const type = lex.getString();
- display = displayTranslator.find(type);
+ if (IsFileReadable(filename)) {
+ string const type = lex.getString();
+ display = displayTranslator.find(type);
+ } else
+ display = NONE;
} else if (token == "subcaption") {
subcaption = true;
} else if (token == "subcaptionText") {