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 | bbde1a17ac609661498fcea951def9c513b7f923 (patch) | |
tree | eb803b0397d0474790966fc08f25ed7fa66e1377 /lotuswordpro/source | |
parent | 9bb60844e028ade9a1e2c8e0aec99b9ac059731b (diff) |
Found duplicate if expressions in ToXml
Diffstat (limited to 'lotuswordpro/source')
-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 251274ff6..d5c2bb4ac 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") ); |