[Libreoffice-commits] .: Branch 'libreoffice-3-6' - xmloff/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Sep 17 00:53:34 PDT 2012


 xmloff/source/text/txtflde.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit b8f05cb9b800a66702a6fb244aefe37daedcd337
Author: Michael Stahl <mstahl at redhat.com>
Date:   Thu Sep 13 17:49:20 2012 +0200

    fdo#49677: ODF export: always add xlink:type attribute
    
    The xlink:type was optional on text:a and draw:a elements in ODF 1.1 but
    is mandatory in ODF 1.2
    
    Change-Id: Ifc7301ed1b0120d31a156751888dea1a55e952fe
    (cherry picked from commit a27a6b68b7e4d2a4674b4de59fc487b17c7c9907)
    Reviewed-on: https://gerrit.libreoffice.org/614
    Reviewed-by: Miklos Vajna <vmiklos at suse.cz>
    Tested-by: Miklos Vajna <vmiklos at suse.cz>

diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index 410bb05..7b17574 100644
--- a/xmloff/source/text/txtflde.cxx
+++ b/xmloff/source/text/txtflde.cxx
@@ -1696,6 +1696,7 @@ void XMLTextFieldExport::ExportFieldHelper(
         ProcessString(XML_TARGET_FRAME_NAME,
                       GetStringProperty(sPropertyTargetFrame,rPropSet),
                       sal_True, XML_NAMESPACE_OFFICE);
+        GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_TYPE, XML_SIMPLE );
         SvXMLElementExport aUrlField(rExport, XML_NAMESPACE_TEXT, XML_A,
                                      sal_False, sal_False);
         GetExport().Characters(sPresentation);


More information about the Libreoffice-commits mailing list