From 06170de4a166bfad9342f3b957dda82b7fb266b2 Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 19 Jun 2014 19:35:50 +0200 Subject: Bug 702584 - \cite rejects valid BibTeX keys According to the documentation the .bib is automatically added to the names in the CITE_BIB_FILES. In the example given with this bug this was not the case. In case CITE_BIB_FILES was set to 'my.bib' it was working, but with only 'my' it wasn't. --- src/cite.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cite.cpp b/src/cite.cpp index a3056ba..f0580ed 100644 --- a/src/cite.cpp +++ b/src/cite.cpp @@ -58,6 +58,10 @@ static QCString getListOfBibFiles(const QCString &sep,bool namesOnly) { bibFile = bibFile.left(bibFile.length()-4); } + else + { + if (!namesOnly && bibFile.right(4)!=".bib") bibFile += ".bib"; + } if ((i=bibFile.findRev('/'))!=-1) // strip path { bibFile = bibFile.mid(i+1); -- cgit v0.12