summaryrefslogtreecommitdiffstats
path: root/src/cite.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2014-06-19 17:35:50 (GMT)
committeralbert-github <albert.tests@gmail.com>2014-06-19 17:35:50 (GMT)
commit06170de4a166bfad9342f3b957dda82b7fb266b2 (patch)
treec3b9d50d0c367607dcb9efb35db00ec41538b6e5 /src/cite.cpp
parent21178ab40160abf011fa084a10892b5b7821e44c (diff)
downloadDoxygen-06170de4a166bfad9342f3b957dda82b7fb266b2.zip
Doxygen-06170de4a166bfad9342f3b957dda82b7fb266b2.tar.gz
Doxygen-06170de4a166bfad9342f3b957dda82b7fb266b2.tar.bz2
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.
Diffstat (limited to 'src/cite.cpp')
-rw-r--r--src/cite.cpp4
1 files changed, 4 insertions, 0 deletions
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);