summaryrefslogtreecommitdiffstats
path: root/src/rtfdocvisitor.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2013-12-01 13:43:58 (GMT)
committeralbert-github <albert.tests@gmail.com>2013-12-01 13:43:58 (GMT)
commitd809d163b60a42850c0c4db72c1ba1ed7785416b (patch)
tree0011d7f28190c20c3cd8b594ed19fcbf0c5ce919 /src/rtfdocvisitor.cpp
parent58058025a8357dcba0da4be0f6c3ddfec8c37839 (diff)
downloadDoxygen-d809d163b60a42850c0c4db72c1ba1ed7785416b.zip
Doxygen-d809d163b60a42850c0c4db72c1ba1ed7785416b.tar.gz
Doxygen-d809d163b60a42850c0c4db72c1ba1ed7785416b.tar.bz2
Bug 719639 - @xrefitem with empty heading string
Adjusted documentation and in case the title is the empty string in a DocXRefItem the visitPre and visitPost do nothing.
Diffstat (limited to 'src/rtfdocvisitor.cpp')
-rw-r--r--src/rtfdocvisitor.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp
index 5d73c57..d83d8c0 100644
--- a/src/rtfdocvisitor.cpp
+++ b/src/rtfdocvisitor.cpp
@@ -1579,6 +1579,7 @@ void RTFDocVisitor::visitPost(DocParamList *pl)
void RTFDocVisitor::visitPre(DocXRefItem *x)
{
if (m_hide) return;
+ if (!(x->title().length())) return;
bool anonymousEnum = x->file()=="@";
DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocXRefItem)}\n");
m_t << "{"; // start param list
@@ -1624,9 +1625,10 @@ void RTFDocVisitor::visitPre(DocXRefItem *x)
m_lastIsPara=FALSE;
}
-void RTFDocVisitor::visitPost(DocXRefItem *)
+void RTFDocVisitor::visitPost(DocXRefItem *x)
{
if (m_hide) return;
+ if (!(x->title().length())) return;
DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocXRefItem)}\n");
m_t << "\\par" << endl;
decIndentLevel();