[Libreoffice-commits] core.git: xmloff/source

Eike Rathke erack at redhat.com
Tue Jun 20 11:00:21 UTC 2017


 xmloff/source/text/txtflde.cxx |   21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

New commits:
commit 29f250c428953750ce89dec7ee961723478609c1
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Jun 20 12:59:23 2017 +0200

    Resolves: tdf#107438 write <text:sender-initials> for fields
    
    Only in <office:annotation> context write <loext:sender-initials>
    
    Broken since
    
        commit 5f8476c00f482ab5c8707de2ebdcd41faa4057fc
        Date:   Fri Dec 13 23:21:46 2013 +0100
    
    and
    
        commit 49f9694e34d07468cff4a7e4de332f11be3e0dd8
        Date:   Fri Dec 13 23:30:34 2013 +0100
    
    Change-Id: I48b146b779878bf0faa5830a721559d8e864dd33

diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index cc2f785a2bb9..dcc878248bd1 100644
--- a/xmloff/source/text/txtflde.cxx
+++ b/xmloff/source/text/txtflde.cxx
@@ -2220,23 +2220,10 @@ void XMLTextFieldExport::ExportElement(enum XMLTokenEnum eElementName,
     if (eElementName != XML_TOKEN_INVALID)
     {
         // Element
-        if (eElementName == XML_SENDER_INITIALS)
-        {
-            if (SvtSaveOptions().GetODFDefaultVersion() > SvtSaveOptions::ODFVER_012)
-            {
-                SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_LO_EXT,
-                        eElementName, false, false );
-                // export content
-                GetExport().Characters(sContent);
-            }
-        }
-        else
-        {
-            SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_TEXT,
-                                      eElementName, false, false );
-            // export content
-            GetExport().Characters(sContent);
-        }
+        SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_TEXT,
+                eElementName, false, false );
+        // export content
+        GetExport().Characters(sContent);
     } else {
         // always export content
         GetExport().Characters(sContent);


More information about the Libreoffice-commits mailing list