summaryrefslogtreecommitdiffstats
path: root/src/rtfdocvisitor.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-12-07 22:25:45 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-12-07 22:25:45 (GMT)
commitbdbc5d8a2fe51cc7055365d90d7f7ce45f9dfac1 (patch)
tree57f9fbe34db04d4c1e7078d348fd2605bcecf4d1 /src/rtfdocvisitor.cpp
parente6e3da98ec320ca5b3ad68f446fdfe75c3478961 (diff)
parenta481a84fdf39cdf40b38ebaad86b2a159db4c383 (diff)
downloadDoxygen-bdbc5d8a2fe51cc7055365d90d7f7ce45f9dfac1.zip
Doxygen-bdbc5d8a2fe51cc7055365d90d7f7ce45f9dfac1.tar.gz
Doxygen-bdbc5d8a2fe51cc7055365d90d7f7ce45f9dfac1.tar.bz2
Merge pull request #61 from albert-github/feature/bug_719639
Bug 719639 - @xrefitem with empty heading string
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 576581a..7c2fef8 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().isEmpty()) 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().isEmpty()) return;
DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocXRefItem)}\n");
m_t << "\\par" << endl;
decIndentLevel();