diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-06-07 21:24:50 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-06-07 21:29:50 +0200 |
commit | 801126cf0b748dd3c78e1826dcebcc079ae7a9a0 (patch) | |
tree | e6275eb8556afbaa2cd5c0c64521cca4ce9d9aa8 /lotuswordpro | |
parent | 6808d3376167e1dc4d8c7c2e5cf0f122bbdf7dc4 (diff) |
Found duplicate if expressions in ToXml
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfbookmarkref.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xfbookmarkref.cxx b/lotuswordpro/source/filter/xfilter/xfbookmarkref.cxx index 9ad96dc7fb21..664ceb01bf15 100644 --- a/lotuswordpro/source/filter/xfilter/xfbookmarkref.cxx +++ b/lotuswordpro/source/filter/xfilter/xfbookmarkref.cxx @@ -82,12 +82,6 @@ void XFBookmarkRef::ToXml(IXFStream *pStrm) pAttrList->AddAttribute( A2OUSTR("text:reference-format"), A2OUSTR("chapter") ); pAttrList->AddAttribute( A2OUSTR("text:ref-name"), m_strBookmark ); } - else if( m_eRefType == enumXFBookmarkPage ) - { - pAttrList->AddAttribute( A2OUSTR("text:reference-format"), A2OUSTR("text") ); - pAttrList->AddAttribute( A2OUSTR("text:ref-name"), m_strBookmark ); - - } else if( m_eRefType == enumXFBookmarkDir ) { pAttrList->AddAttribute( A2OUSTR("text:reference-format"), A2OUSTR("direction") ); @@ -95,6 +89,7 @@ void XFBookmarkRef::ToXml(IXFStream *pStrm) } else if( m_eRefType == enumXFBookmarkDef ) { + pAttrList->AddAttribute( A2OUSTR("text:reference-format"), A2OUSTR("text") ); pAttrList->AddAttribute( A2OUSTR("text:ref-name"), m_strBookmark ); } pStrm->StartElement( A2OUSTR("text:bookmark-ref") ); |