[Libreoffice-commits] .: lotuswordpro/source

Julien Nabet serval2412 at kemper.freedesktop.org
Tue Jun 7 12:32:07 PDT 2011


 lotuswordpro/source/filter/xfilter/xfbookmarkref.cxx |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit bbde1a17ac609661498fcea951def9c513b7f923
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue Jun 7 21:24:50 2011 +0200

    Found duplicate if expressions in ToXml

diff --git a/lotuswordpro/source/filter/xfilter/xfbookmarkref.cxx b/lotuswordpro/source/filter/xfilter/xfbookmarkref.cxx
index 251274f..d5c2bb4 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") );


More information about the Libreoffice-commits mailing list