summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-07-21 19:10:12 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-07-22 14:29:01 +0000
commit23e54b541892c0343e012b51c5722f8e3edc02ef (patch)
treeac7d358cd38a09de0cbd8f88c4c0159fe6c2b4c9
parent17e55304319a6046e649adcfc5d3fbd573d5d43e (diff)
use SvXMLExport::GetRelativeReference(), fdo#79305
Change-Id: I1e92a87034cf31470a9d8809f3b543b154c65126 Reviewed-on: https://gerrit.libreoffice.org/10445 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index 058e7198d8d7..2e732366e8bf 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -3080,7 +3080,7 @@ void writeContent(
// <text:a xlink:href="url" xlink:type="simple">value</text:a>
OUString aURL = static_cast<const SvxURLField*>(pField)->GetURL();
- rExport.AddAttribute(XML_NAMESPACE_XLINK, XML_HREF, aURL);
+ rExport.AddAttribute(XML_NAMESPACE_XLINK, XML_HREF, rExport.GetRelativeReference(aURL));
rExport.AddAttribute(XML_NAMESPACE_XLINK, XML_TYPE, "simple");
OUString aElemName = rExport.GetNamespaceMap().GetQNameByKey(