File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -841,9 +841,17 @@ void DocRef::parse()
841
841
842
842
if (children ().empty () && !m_text.isEmpty ())
843
843
{
844
+ QCString text = m_text;
845
+ if (parser ()->context .insideHtmlLink )
846
+ {
847
+ // we already in a link/title only output anchor
848
+ text = m_anchor;
849
+ warn_doc_error (parser ()->context .fileName ,parser ()->tokenizer .getLineNr (),
850
+ " Potential recursion while resolving \\ ref command!" );
851
+ }
844
852
parser ()->context .insideHtmlLink =TRUE ;
845
853
parser ()->pushContext ();
846
- parser ()->internalValidatingParseDoc (thisVariant (),children (),m_text );
854
+ parser ()->internalValidatingParseDoc (thisVariant (),children (),text );
847
855
parser ()->popContext ();
848
856
parser ()->context .insideHtmlLink =FALSE ;
849
857
parser ()->tokenizer .setStatePara ();
You can’t perform that action at this time.
0 commit comments