mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
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:
parent
4f76947d03
commit
efbbf7a31f
@ -104,8 +104,6 @@ void InsetBibtex::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
embedStatus = split(embedStatus, emb, ',');
|
embedStatus = split(embedStatus, emb, ',');
|
||||||
while (!tmp.empty()) {
|
while (!tmp.empty()) {
|
||||||
EmbeddedFile file(changeExtension(tmp, "bib"), cur.buffer().filePath());
|
EmbeddedFile file(changeExtension(tmp, "bib"), cur.buffer().filePath());
|
||||||
if (!file.exists())
|
|
||||||
continue;
|
|
||||||
if (!newBibfiles.empty())
|
if (!newBibfiles.empty())
|
||||||
newBibfiles += ",";
|
newBibfiles += ",";
|
||||||
newBibfiles += tmp;
|
newBibfiles += tmp;
|
||||||
|
Loading…
Reference in New Issue
Block a user