diff options
Diffstat (limited to 'src/rtfdocvisitor.cpp')
-rw-r--r-- | src/rtfdocvisitor.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp index 7ce804b..58046b1 100644 --- a/src/rtfdocvisitor.cpp +++ b/src/rtfdocvisitor.cpp @@ -1150,13 +1150,22 @@ void RTFDocVisitor::visitPre(DocParamList *pl) if (m_hide) return; DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocParamList)}\n"); m_t << "{\\i "; - QStrListIterator li(pl->parameters()); - const char *s; + //QStrListIterator li(pl->parameters()); + //const char *s; + QListIterator<DocNode> li(pl->parameters()); + DocNode *param; bool first=TRUE; - for (li.toFirst();(s=li.current());++li) + for (li.toFirst();(param=li.current());++li) { if (!first) m_t << ","; else first=FALSE; - filter(s); + if (param->kind()==DocNode::Kind_Word) + { + visit((DocWord*)param); + } + else if (param->kind()==DocNode::Kind_LinkedWord) + { + visit((DocLinkedWord*)param); + } } m_t << "} "; m_lastIsPara=TRUE; |