diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-01-04 09:27:45 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-01-04 09:27:45 (GMT) |
commit | e9ca9dcd2b4606dedfde0e6f9084c654f09becc8 (patch) | |
tree | 03525720cb38f25b90b1409111c5daa22b4911a7 /src | |
parent | b509708f6bbb005e3ac23945ae0298b79bb4a6df (diff) | |
download | Doxygen-e9ca9dcd2b4606dedfde0e6f9084c654f09becc8.zip Doxygen-e9ca9dcd2b4606dedfde0e6f9084c654f09becc8.tar.gz Doxygen-e9ca9dcd2b4606dedfde0e6f9084c654f09becc8.tar.bz2 |
issue #8300: File naming changed in Doxygen 1.9.0
Diffstat (limited to 'src')
-rw-r--r-- | src/doxygen.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 257a031..82c86ce 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -9325,11 +9325,22 @@ static void generateDiskNames() int first_path_size = static_cast<int>(first.path.size())-1; // -1 to skip trailing slash int last_path_size = static_cast<int>(last.path.size())-1; // -1 to skip trailing slash int j=0; - for (int i=0;i<first_path_size && i<last_path_size;i++) + int i=0; + for (i=0;i<first_path_size && i<last_path_size;i++) { if (first.path[i]=='/') j=i; if (first.path[i]!=last.path[i]) break; } + if (i==first_path_size && i<last_path_size && last.path[i]=='/') + { + // case first='some/path' and last='some/path/more' => match is 'some/path' + j=first_path_size; + } + else if (i==last_path_size && i<first_path_size && first.path[i]=='/') + { + // case first='some/path/more' and last='some/path' => match is 'some/path' + j=last_path_size; + } // add non-common part of the path to the name for (auto &fileEntry : fileEntries) |