summaryrefslogtreecommitdiffstats
path: root/src/dot.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-12-28 19:55:44 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-12-28 19:57:15 (GMT)
commit17b66265ace3418413b5cfab0335b4378e9c176b (patch)
treef804111d669c85861a6408a15821dac7779d4468 /src/dot.cpp
parentbacc2b2fd7b8173f52b2087b4004c5b936819877 (diff)
downloadDoxygen-17b66265ace3418413b5cfab0335b4378e9c176b.zip
Doxygen-17b66265ace3418413b5cfab0335b4378e9c176b.tar.gz
Doxygen-17b66265ace3418413b5cfab0335b4378e9c176b.tar.bz2
Bug 742715 - Unnamed structs gives: QGDict::hashAsciiKey: Invalid null key
Diffstat (limited to 'src/dot.cpp')
-rw-r--r--src/dot.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/dot.cpp b/src/dot.cpp
index 2f245f6..0a4f136 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -2594,7 +2594,12 @@ void DotClassGraph::addClass(ClassDef *cd,DotNode *n,int prot,
int edgeStyle = (label || prot==EdgeInfo::Orange || prot==EdgeInfo::Orange2) ? EdgeInfo::Dashed : EdgeInfo::Solid;
QCString className;
- if (usedName) // name is a typedef
+ if (cd->isAnonymous())
+ {
+ className="anonymous:";
+ className+=label;
+ }
+ else if (usedName) // name is a typedef
{
className=usedName;
}
@@ -2822,9 +2827,9 @@ void DotClassGraph::buildGraph(ClassDef *cd,DotNode *n,bool base,int distance)
if (m_graphType == DotNode::Collaboration)
{
// ---- Add usage relations
-
- UsesClassDict *dict =
- base ? cd->usedImplementationClasses() :
+
+ UsesClassDict *dict =
+ base ? cd->usedImplementationClasses() :
cd->usedByImplementationClasses()
;
if (dict)