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
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user