Skip to content

Commit 8a04ecd

Browse files
committed
issue #10754 GENERATE_HTMLHELP with \msc & \endmsc is broken because of absolute paths in index.hhp since 1.9.3
Strip path from imgName
1 parent cbb48ed commit 8a04ecd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/msc.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ void writeMscGraphFromFile(const QCString &inFile,const QCString &outDir,
198198
}
199199
}
200200

201+
int i=std::max(imgName.findRev('/'),imgName.findRev('\\'));
202+
if (i!=-1) // strip path
203+
{
204+
imgName=imgName.right(imgName.length()-i-1);
205+
}
201206
Doxygen::indexList->addImageFile(imgName);
202207

203208
}

0 commit comments

Comments
 (0)