summaryrefslogtreecommitdiff
path: root/sw/source/ui/uno
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2010-01-20 16:59:56 +0100
committerMichael Stahl <mst@openoffice.org>2010-01-20 16:59:56 +0100
commita609fbf16e0df2cbe9fcbd8dd6ddd603e8e26d26 (patch)
treef1d1129953e094f09b5fda32e531b8429ddaa974 /sw/source/ui/uno
parentf6ace25c679545cff5c18e781b2067df9ad00329 (diff)
swunolocking1: #i108489#: fix crash:
XTextRangeToSwPaM(): do not prematurely release newly created text cursor. SwXTextViewCursor::gotoRange(): do not throw IllegalArgumentException.
Diffstat (limited to 'sw/source/ui/uno')
-rw-r--r--sw/source/ui/uno/unotxvw.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/uno/unotxvw.cxx b/sw/source/ui/uno/unotxvw.cxx
index b9a1bd8fd2..3b7b10f516 100644
--- a/sw/source/ui/uno/unotxvw.cxx
+++ b/sw/source/ui/uno/unotxvw.cxx
@@ -1364,7 +1364,9 @@ void SwXTextViewCursor::gotoRange(
SwUnoInternalPaM rDestPam(*m_pView->GetDocShell()->GetDoc());
if (!::sw::XTextRangeToSwPaM(rDestPam, xRange))
- throw IllegalArgumentException();
+ {
+ throw uno::RuntimeException();
+ }
ShellModes eSelMode = m_pView->GetShellMode();
SwWrtShell& rSh = m_pView->GetWrtShell();