Skip to content

Commit

Permalink
Bug 702584 - \cite rejects valid BibTeX keys
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
albert-github committed Jun 19, 2014
1 parent 21178ab commit 06170de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 06170de

Please sign in to comment.