Fix r22486, which causes an infinite loop when a bibtex file is not available. Reported by Horst

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22505 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2008-01-12 06:17:37 +00:00
parent 4f76947d03
commit efbbf7a31f

View File

@ -104,8 +104,6 @@ void InsetBibtex::doDispatch(Cursor & cur, FuncRequest & cmd)
embedStatus = split(embedStatus, emb, ',');
while (!tmp.empty()) {
EmbeddedFile file(changeExtension(tmp, "bib"), cur.buffer().filePath());
if (!file.exists())
continue;
if (!newBibfiles.empty())
newBibfiles += ",";
newBibfiles += tmp;