summaryrefslogtreecommitdiffstats
path: root/src/diagram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/diagram.cpp')
-rw-r--r--src/diagram.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/diagram.cpp b/src/diagram.cpp
index 9e6a933..487e44a 100644
--- a/src/diagram.cpp
+++ b/src/diagram.cpp
@@ -164,7 +164,17 @@ static void writeMapArea(FTextStream &t,ClassDef *cd,QCString relPath,
}
t << "href=\"";
t << externalRef(relPath,ref,TRUE);
- t << cd->getOutputFileBase() << Doxygen::htmlFileExtension << "\" ";
+ t << cd->getOutputFileBase() << Doxygen::htmlFileExtension;
+ if (!cd->anchor().isEmpty())
+ {
+ t << "#" << cd->anchor();
+ }
+ t << "\" ";
+ QCString tooltip = cd->briefDescriptionAsTooltip();
+ if (!tooltip.isEmpty())
+ {
+ t << "title=\"" << tooltip << "\" ";
+ }
t << "alt=\"" << convertToXML(cd->displayName());
t << "\" shape=\"rect\" coords=\"" << x << "," << y << ",";
t << (x+w) << "," << (y+h) << "\"/>" << endl;