summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-03-04 17:16:05 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-03-04 17:16:05 (GMT)
commit1c38b7dda7d8e1f3162c036954ec80144a52c3d0 (patch)
tree1047bd53cc64b06596ba2584da91e1cabf00dc5d
parent169a67186780c191749b958de0f71a17fa090248 (diff)
downloadDoxygen-1c38b7dda7d8e1f3162c036954ec80144a52c3d0.zip
Doxygen-1c38b7dda7d8e1f3162c036954ec80144a52c3d0.tar.gz
Doxygen-1c38b7dda7d8e1f3162c036954ec80144a52c3d0.tar.bz2
issue #6869 SVG image generated by \dot or \dotfile does not render properly in HTML
The path to the svgpan.js should be relative to the svg file. For files generated with `dot` or `\dotfile` this is the root of the HTML tree, so relpath is here an empty reference (the svg file still needs the relpath as this file is referenced from a html file that is possibly in a sub directory).
-rw-r--r--src/dot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dot.cpp b/src/dot.cpp
index 40a7210..30d75ac 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -4331,7 +4331,7 @@ void writeDotImageMapFromFile(FTextStream &t,
QCString svgName=outDir+"/"+baseName+".svg";
writeSVGFigureLink(t,relPath,baseName,svgName);
DotFilePatcher patcher(svgName);
- patcher.addSVGConversion(relPath,TRUE,context,TRUE,graphId);
+ patcher.addSVGConversion("",TRUE,context,TRUE,graphId);
patcher.run();
}
else // bitmap graphics