summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2010-10-04 16:58:48 +0200
committerMichael Stahl <mst@openoffice.org>2010-10-04 16:58:48 +0200
commit7ee680bb9d9d319a325e29ec580da858cd621ed0 (patch)
tree00b137f678a28d70b3d3899ae580df3319edebdc
parent2647262c2bae690ef64eba996d06b1cf83b0cc6b (diff)
sw34bf01: XMLTextMarkImportContext::EndElement(): catch exception
-rw-r--r--xmloff/source/text/XMLTextMarkImportContext.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmloff/source/text/XMLTextMarkImportContext.cxx b/xmloff/source/text/XMLTextMarkImportContext.cxx
index 74060049f9..57028a107a 100644
--- a/xmloff/source/text/XMLTextMarkImportContext.cxx
+++ b/xmloff/source/text/XMLTextMarkImportContext.cxx
@@ -287,7 +287,12 @@ void XMLTextMarkImportContext::EndElement()
Reference<XTextCursor> xInsertionCursor =
m_rHelper.GetText()->createTextCursorByRange(
xEndRange);
+ try {
xInsertionCursor->gotoRange(xStartRange, sal_True);
+ } catch (uno::Exception&) {
+ OSL_ENSURE(false,
+ "cannot go to end position of bookmark");
+ }
//DBG_ASSERT(! xInsertionCursor->isCollapsed(),
// "we want no point mark");