summaryrefslogtreecommitdiffstats
path: root/src/diagram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/diagram.cpp')
-rw-r--r--src/diagram.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/diagram.cpp b/src/diagram.cpp
index c40002c..07fb4aa 100644
--- a/src/diagram.cpp
+++ b/src/diagram.cpp
@@ -209,7 +209,12 @@ QCString DiagramItem::label() const
{
// we use classDef->name() here and not diplayName() in order
// to get the name used in the inheritance relation.
- result=insertTemplateSpecifierInScope(classDef->name(),templSpec);
+ QCString n = classDef->name();
+ if (n.right(2)=="-g" || n.right(2)=="-p")
+ {
+ n = n.left(n.length()-2);
+ }
+ result=insertTemplateSpecifierInScope(n,templSpec);
}
else
{