summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2016-10-22 18:05:30 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2016-10-22 18:05:30 (GMT)
commit6300c03b6201ca7981388a6d3c01486f8a8adba0 (patch)
tree5aed3d70c4cf3748e7923f3f290b8c760e5c1f33 /src
parentd6ec94c3b7f583f4074142a6302ffd48f45ddd2e (diff)
downloadDoxygen-6300c03b6201ca7981388a6d3c01486f8a8adba0.zip
Doxygen-6300c03b6201ca7981388a6d3c01486f8a8adba0.tar.gz
Doxygen-6300c03b6201ca7981388a6d3c01486f8a8adba0.tar.bz2
Bug 773354 - "name" attribute of image map not urlencoded, not working in Chrome
Diffstat (limited to 'src')
-rw-r--r--src/context.cpp2
-rw-r--r--src/htmlgen.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/context.cpp b/src/context.cpp
index e13aa69..2d4200e 100644
--- a/src/context.cpp
+++ b/src/context.cpp
@@ -1989,7 +1989,7 @@ class ClassContext::Private : public DefinitionContext<ClassContext::Private>
t << "<img src=\"";
t << relPathAsString() << m_classDef->getOutputFileBase();
t << ".png\" usemap=\"#" << convertToId(name) << "_map\" alt=\"\"/>" << endl;
- t << "<map id=\"" << convertToId(name) << "_map\" name=\"" << name << "_map\">" << endl;
+ t << "<map id=\"" << convertToId(name) << "_map\" name=\"" << convertToId(name) << "_map\">" << endl;
d.writeImage(t,g_globals.outputDir,
relPathAsString(),
m_classDef->getOutputFileBase());
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index 24af9fc..5b4519b 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -1359,8 +1359,7 @@ void HtmlGenerator::endClassDiagram(const ClassDiagram &d,
t << relPath << fileName << ".png\" usemap=\"#" << convertToId(name);
t << "_map\" alt=\"\"/>" << endl;
t << " <map id=\"" << convertToId(name);
- t << "_map\" name=\"";
- docify(name);
+ t << "_map\" name=\"" << convertToId(name);
t << "_map\">" << endl;
d.writeImage(t,dir,relPath,fileName);