summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-09-17 19:20:47 (GMT)
committerGitHub <noreply@github.com>2019-09-17 19:20:47 (GMT)
commit98823086ba405b98bf9391ff4b98282b6e7d76fe (patch)
tree565e9371fb1f75519a7e15591423137efff3c594 /src
parent08b01174751bd1071474bdcbe1ebf2691d41595a (diff)
parentbe506b7eea601886f7fea0594a153900db549050 (diff)
downloadDoxygen-98823086ba405b98bf9391ff4b98282b6e7d76fe.zip
Doxygen-98823086ba405b98bf9391ff4b98282b6e7d76fe.tar.gz
Doxygen-98823086ba405b98bf9391ff4b98282b6e7d76fe.tar.bz2
Merge pull request #7263 from albert-github/feature/issue_7262
issue #7262 ALIASES not found when filename has more than one dot
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());