diff --git a/src/util.cpp b/src/util.cpp index 5ccf13ffc8..31365b5561 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -3474,7 +3474,9 @@ FileDef *findFileDef(const FileNameLinkedMap *fnMap,const QCString &n,bool &ambi { FileDef *fd = fd_p.get(); QCString fdStripPath = stripFromIncludePath(fd->getPath()); - if (path.isEmpty() || fdStripPath.right(pathStripped.length())==pathStripped) + if (path.isEmpty() || + (!pathStripped.isEmpty() && fdStripPath.endsWith(pathStripped)) || + (pathStripped.isEmpty() && fdStripPath.isEmpty())) { count++; lastMatch=fd;
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: