diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-10-24 15:12:13 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-10-24 15:12:13 (GMT) |
commit | 79ed06502c3abca083f2e231f09fc8101862fcf6 (patch) | |
tree | 32339b0f091ccca17a2704e049861f1fe80224b8 | |
parent | 060a5cc121be5fd177b5d5c834f2b810dc58b9ec (diff) | |
download | Doxygen-79ed06502c3abca083f2e231f09fc8101862fcf6.zip Doxygen-79ed06502c3abca083f2e231f09fc8101862fcf6.tar.gz Doxygen-79ed06502c3abca083f2e231f09fc8101862fcf6.tar.bz2 |
Fixed extension matching issue if path contained a dot.
-rw-r--r-- | src/doxygen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 8600a30..4e8409a 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -9247,8 +9247,9 @@ static ParserInterface *getParserForFile(const char *fn) { QCString fileName=fn; QCString extension; + int sep = fileName.findRev('/'); int ei = fileName.findRev('.'); - if (ei!=-1) + if (ei!=-1 && (sep==-1 || ei>sep)) // matches dir/file.ext but not dir.1/file { extension=fileName.right(fileName.length()-ei); } |