From 939eca311ced62d9cb41d8e3c1acc207c99e09ed Mon Sep 17 00:00:00 2001
From: albert-github <albert.tests@gmail.com>
Date: Thu, 15 Oct 2020 13:06:23 +0200
Subject: [PATCH] Incorrect label / name in case regeneration of HTML without
 regeneration of dot files

https://github.com/doxygen/doxygen/commit/de56d1864473485861bac89436337e8114fb2f6b

This is a further regression on #7840.
In case we regenerate the HTML files but not the image files based on dot we get incorrect labels for the id / name in the HTML output.
---
 src/dotgraph.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dotgraph.cpp b/src/dotgraph.cpp
index 55ea5ab..e1844b5 100644
--- a/src/dotgraph.cpp
+++ b/src/dotgraph.cpp
@@ -249,7 +249,7 @@ void DotGraph::generateCode(FTextStream &t)
       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()))
+      if (m_regenerate || !insertMapFile(t, absMapName(), m_relPath, correctId(getMapLabel())))
       {
         int mapId = DotManager::instance()->
           createFilePatcher(m_fileName.data())->
-- 
2.23.0

