summaryrefslogtreecommitdiffstats
path: root/src/dotgraph.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-06-13 12:55:13 (GMT)
committerGitHub <noreply@github.com>2020-06-13 12:55:13 (GMT)
commite53fa89addc9659ad406298d27a6376d1eb53e0d (patch)
treeeaa7ea5f3aa70a61a2ec3343cd6dacf7dd601aa2 /src/dotgraph.cpp
parente7637f9dd977e9821394e7bed4dec02aec41ab9e (diff)
downloadDoxygen-e53fa89addc9659ad406298d27a6376d1eb53e0d.zip
Doxygen-e53fa89addc9659ad406298d27a6376d1eb53e0d.tar.gz
Doxygen-e53fa89addc9659ad406298d27a6376d1eb53e0d.tar.bz2
Incorrect label in map of dot files in xhtml (#7840)
When a filename of a file starts with a digit the mapping of the resulting dot files results in message like: ``` Syntax of value for attribute id of map is not valid ``` an id cannot start with a digit, so an "a" is placed in front of it (unconditionally to overcome problems with a double label id i.e filename 087.cpp and a087.cpp).
Diffstat (limited to 'src/dotgraph.cpp')
-rw-r--r--src/dotgraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotgraph.cpp b/src/dotgraph.cpp
index c0cc4fd..1ad85e1 100644
--- a/src/dotgraph.cpp
+++ b/src/dotgraph.cpp
@@ -236,7 +236,7 @@ void DotGraph::generateCode(FTextStream &t)
else // add link to bitmap file with image map
{
if (!m_noDivTag) t << "<div class=\"center\">";
- t << "<img src=\"" << relImgName() << "\" border=\"0\" usemap=\"#" << getMapLabel() << "\" alt=\"" << getImgAltText() << "\"/>";
+ t << "<img src=\"" << relImgName() << "\" border=\"0\" usemap=\"#" << correctId(getMapLabel()) << "\" alt=\"" << getImgAltText() << "\"/>";
if (!m_noDivTag) t << "</div>";
t << endl;
if (m_regenerate || !insertMapFile(t, absMapName(), m_relPath, getMapLabel()))