Skip to content

Commit

Permalink
Bug 773354 - "name" attribute of image map not urlencoded, not workin…
Browse files Browse the repository at this point in the history
…g in Chrome
  • Loading branch information
Dimitri van Heesch committed Oct 22, 2016
1 parent d6ec94c commit 6300c03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/context.cpp
Expand Up @@ -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());
Expand Down
3 changes: 1 addition & 2 deletions src/htmlgen.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 6300c03

Please sign in to comment.