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,9 +2066,16 @@ XMLParaContext::~XMLParaContext()
|
|||||||
Reference<beans::XPropertySet> xMark(
|
Reference<beans::XPropertySet> xMark(
|
||||||
static_cast<const XMLIndexMarkHint_Impl *>(pHint)->GetMark());
|
static_cast<const XMLIndexMarkHint_Impl *>(pHint)->GetMark());
|
||||||
Reference<XTextContent> xContent(xMark, UNO_QUERY);
|
Reference<XTextContent> xContent(xMark, UNO_QUERY);
|
||||||
|
try
|
||||||
|
{
|
||||||
xTxtImport->GetText()->insertTextContent(
|
xTxtImport->GetText()->insertTextContent(
|
||||||
xAttrCursor, xContent, true );
|
xAttrCursor, xContent, true );
|
||||||
}
|
}
|
||||||
|
catch (uno::RuntimeException const& e)
|
||||||
|
{
|
||||||
|
SAL_INFO("xmloff.text", "could not insert index mark, presumably in editengine text " << e.Message);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case XML_HINT_TEXT_FRAME:
|
case XML_HINT_TEXT_FRAME:
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user