diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-05-26 18:59:19 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-05-26 18:59:19 (GMT) |
commit | 66db5d8497c9a97b4cd09fb5c12f7914cc3e9d91 (patch) | |
tree | 8da3c1cc21a0d88ac39dc5fca731aae2aefa1ce2 /src/dot.cpp | |
parent | 5a7cb5383abbd105c22dca28171806bd2a5a9cda (diff) | |
download | Doxygen-66db5d8497c9a97b4cd09fb5c12f7914cc3e9d91.zip Doxygen-66db5d8497c9a97b4cd09fb5c12f7914cc3e9d91.tar.gz Doxygen-66db5d8497c9a97b4cd09fb5c12f7914cc3e9d91.tar.bz2 |
Release-1.2.16-20020526
Diffstat (limited to 'src/dot.cpp')
-rw-r--r-- | src/dot.cpp | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/src/dot.cpp b/src/dot.cpp index ffd4abd..478de8a 100644 --- a/src/dot.cpp +++ b/src/dot.cpp @@ -769,11 +769,11 @@ void DotGfxHierarchyTable::writeGraph(QTextStream &out,const char *path) return; } QCString mapLabel = convertNameToFile(n->m_label); - out << "<tr><td><img src=\"" << imgName << "\" border=\"0\" usemap=\"#" - << mapLabel << "_map\"></td></tr>" << endl; + out << "<tr><td><img src=\"" << imgName << "\" border=\"0\" alt=\"\" usemap=\"#" + << mapLabel << "_map\">" << endl; out << "<map name=\"" << mapLabel << "_map\">" << endl; convertMapFile(out,mapName); - out << "</map>" << endl; + out << "</map></td></tr>" << endl; if (Config_getBool("DOT_CLEANUP")) thisDir.remove(dotName); thisDir.remove(mapName); } @@ -1378,9 +1378,15 @@ QCString DotClassGraph::writeGraph(QTextStream &out, break; } out << "\"></center>" << endl; - out << "<map name=\"" << mapLabel << "\">" << endl; - convertMapFile(out,baseName+".map"); - out << "</map>" << endl; + QString tmpstr; + QTextOStream tmpout(&tmpstr); + convertMapFile(tmpout,baseName+".map"); + if (!tmpstr.isEmpty()) + { + out << "<map name=\"" << mapLabel << "\">" << endl; + out << tmpstr; + out << "</map>" << endl; + } thisDir.remove(baseName+".map"); } } @@ -1601,9 +1607,15 @@ QCString DotInclDepGraph::writeGraph(QTextStream &out, if (m_inverse) out << "Included by dependency graph"; else out << "Include dependency graph"; out << "\">"; out << "</center>" << endl; - out << "<map name=\"" << mapName << "_map\">" << endl; - convertMapFile(out,baseName+".map"); - out << "</map>" << endl; + QString tmpstr; + QTextOStream tmpout(&tmpstr); + convertMapFile(tmpout,baseName+".map"); + if (!tmpstr.isEmpty()) + { + out << "<map name=\"" << mapName << "\">" << endl; + out << tmpstr; + out << "</map>" << endl; + } thisDir.remove(baseName+".map"); } } |