summaryrefslogtreecommitdiffstats
path: root/src/cite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cite.cpp')
-rw-r--r--src/cite.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cite.cpp b/src/cite.cpp
index c684083..96e88ae 100644
--- a/src/cite.cpp
+++ b/src/cite.cpp
@@ -52,11 +52,16 @@ static QCString getListOfBibFiles(const QCString &sep,bool stripExtension)
const char *bibdata = citeDataList.first();
while (bibdata)
{
+ int i;
QCString bibFile = bibdata;
if (stripExtension && bibFile.right(4)==".bib")
{
bibFile = bibFile.left(bibFile.length()-4);
}
+ if (stripExtension && (i=bibFile.findRev('/'))!=-1)
+ {
+ bibFile = bibFile.mid(i+1);
+ }
if (!bibFile.isEmpty())
{
result+=bibFile;