summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);