+2002-01-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * FormFiledialog.C (Reread): skip broken symlinks
+
2002-01-13 Lars Gullik Bjønnes <larsbj@birdstep.com>
* FormMathsMatrix.C (AlignFilter): use std::count and add some
// gets file status
File = AddName(pszDirectory, fname);
- // FIXME: we don't get this file exists/stattable
FileInfo fileInfo(File, true);
+
+ // can this really happen?
+ if (!fileInfo.isOK())
+ continue;
+
fileInfo.modeString(szMode);
unsigned int nlink = fileInfo.getNumberOfLinks();
string user = lyxUserCache.find(fileInfo.getUid());
// link). Is that intended?
// JV 199902
fileInfo.newFile(File);
- Buffer += fileInfo.typeIndicator();
+ if (fileInfo.isOK())
+ Buffer += fileInfo.typeIndicator();
+ else
+ continue;
}
}
2002-01-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+ * insetgraphics.C (updateInset): do not try to render image if
+ lyxrc.use_gui is false (bug #104)
+
* insetinclude.C (loadIfNeeded): do not call bufferlist.readFile
if file does not exist
// We do it this way so that in the face of some error, we will still
// be in a valid state.
- if (!params.filename.empty() &&
- lyxrc.display_graphics != "no" &&
- params.display != InsetGraphicsParams::NONE) {
+ if (!params.filename.empty() && lyxrc.use_gui
+ && lyxrc.display_graphics != "no"
+ && params.display != InsetGraphicsParams::NONE) {
temp = gc.addFile(params.filename);
}