summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-08-31 15:15:41 +0200
committerMichael Stahl <mstahl@redhat.com>2017-08-31 15:20:25 +0200
commit98552e46521b012e7694c056eca956ae4ee27a0c (patch)
treeb493b4c530169fc5a51cf4404d272bf85bcfe688 /xmloff/source
parentc864fc9eab79d0b24036588cf8fc37ef51bd1907 (diff)
tdf#112122 xmloff: inserting index marks into editengine throws
Catch the exception, since that isn't even invalid input, editengine just can't do it. Change-Id: I362923889add4f1a1d3f8f18b0795993119d54b1
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/text/txtparai.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx
index 9455c1068324..d5142d917243 100644
--- a/xmloff/source/text/txtparai.cxx
+++ b/xmloff/source/text/txtparai.cxx
@@ -2066,8 +2066,15 @@ XMLParaContext::~XMLParaContext()
Reference<beans::XPropertySet> xMark(
static_cast<const XMLIndexMarkHint_Impl *>(pHint)->GetMark());
Reference<XTextContent> xContent(xMark, UNO_QUERY);
- xTxtImport->GetText()->insertTextContent(
- xAttrCursor, xContent, true );
+ try
+ {
+ xTxtImport->GetText()->insertTextContent(
+ xAttrCursor, xContent, true );
+ }
+ catch (uno::RuntimeException const& e)
+ {
+ SAL_INFO("xmloff.text", "could not insert index mark, presumably in editengine text " << e.Message);
+ }
}
break;
case XML_HINT_TEXT_FRAME: