summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-12-13 17:42:37 +0100
committerMichael Stahl <mstahl@redhat.com>2017-12-13 22:12:39 +0100
commitf6c08dca7d950e583cfc4454a74ed9806eda0609 (patch)
treea32363bda4eef3d985486c2efacc0896d9d172d3
parent78a6ce17f06fbe13b806fd563e85a4fe60d3bcfc (diff)
Related: tdf#71737 xmloff: adapt XMLSectionExport
6ca6d6ac912588a8f62d7e6b668ebec333752ebc enabled hyperlinks on 3 more index types. Change-Id: I6be99443965541183d531ad7dca57ab5d4c73a9b
-rw-r--r--xmloff/source/text/XMLSectionExport.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmloff/source/text/XMLSectionExport.cxx b/xmloff/source/text/XMLSectionExport.cxx
index 899cb51bc068..1249b773e2fa 100644
--- a/xmloff/source/text/XMLSectionExport.cxx
+++ b/xmloff/source/text/XMLSectionExport.cxx
@@ -1310,7 +1310,10 @@ void XMLSectionExport::ExportIndexTemplateElement(
case TOK_TTYPE_HYPERLINK_END:
if (SvtSaveOptions::ODFVER_012 < aODFVersion)
{
- assert(eType == TEXT_SECTION_TYPE_ILLUSTRATION);
+ assert(eType == TEXT_SECTION_TYPE_ILLUSTRATION
+ || eType == TEXT_SECTION_TYPE_OBJECT
+ || eType == TEXT_SECTION_TYPE_TABLE
+ || eType == TEXT_SECTION_TYPE_USER);
nNamespace = XML_NAMESPACE_LO_EXT;
}
else