summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-09-15 09:18:43 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-09-15 09:18:43 (GMT)
commitbe506b7eea601886f7fea0594a153900db549050 (patch)
treede506b30d95796b80448d6ffe15523ae8e7119b0 /src
parent4fbb61f020a607a96152ba5c00668b9840ea812c (diff)
downloadDoxygen-be506b7eea601886f7fea0594a153900db549050.zip
Doxygen-be506b7eea601886f7fea0594a153900db549050.tar.gz
Doxygen-be506b7eea601886f7fea0594a153900db549050.tar.bz2
issue #7262 ALIASES not found when filename has more than one dot
Take the part after the last '.', method 'extension` gives the extension after the first '.' of a filename. This is a regression on pull request #7121 (issue #7120)
Diffstat (limited to 'src')
-rw-r--r--src/util.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 4dc7c71..0e2c5e6 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -7501,7 +7501,8 @@ void addCodeOnlyMappings()
SrcLangExt getLanguageFromFileName(const QCString& fileName)
{
QFileInfo fi(fileName);
- QCString extName = fi.extension().lower().data();
+ // we need only the part after the last ".", newer implementations of QFileInfo have 'suffix()' for this.
+ QCString extName = fi.extension(FALSE).lower().data();
if (extName.isEmpty()) extName=".no_extension";
if (extName.at(0)!='.') extName.prepend(".");
int *pVal=g_extLookup.find(extName.data());