diff options
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp index 65d2069..979911a 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -2569,9 +2569,11 @@ bool generateLink(OutputDocInterface &od,const char *clName, } else if (compound) // link to compound { - if (lt==0 && compound->definitionType()==Definition::TypeGroup) + if (lt==0 && anchor.isEmpty() && /* compound link */ + compound->definitionType()==Definition::TypeGroup /* is group */ + ) { - linkText=((GroupDef *)compound)->groupTitle(); + linkText=((GroupDef *)compound)->groupTitle(); // use group's title as link } od.writeObjectLink(compound->getReference(), compound->getOutputFileBase(),anchor,linkText); |