diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-05-26 18:59:19 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-05-26 18:59:19 (GMT) |
commit | 6f9fc044cdf4ac15a489746d5b0167c9fc433f66 (patch) | |
tree | 8da3c1cc21a0d88ac39dc5fca731aae2aefa1ce2 /src/dot.cpp | |
parent | 2999d2732d1471f144721808e52c04aa17dd63b6 (diff) | |
download | Doxygen-6f9fc044cdf4ac15a489746d5b0167c9fc433f66.zip Doxygen-6f9fc044cdf4ac15a489746d5b0167c9fc433f66.tar.gz Doxygen-6f9fc044cdf4ac15a489746d5b0167c9fc433f66.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"); } } |