diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-01-19 12:36:21 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-01-19 12:36:21 +0100 |
commit | 5e4dc857252c8eeaaa629af2fb6b392ab02036cf (patch) | |
tree | 88942794c62897f5f1a2ea1e4cddb1309502ac5a | |
parent | c8ae30a720474db8efed3db31348f8ae52c149c3 (diff) |
svx: ExternalToolEdit: don't terminate if SystemShellExecute throws
Change-Id: Ia527a2c9467e2ab097cf688164f4176a52fa1d36
-rw-r--r-- | svx/source/core/extedit.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/svx/source/core/extedit.cxx b/svx/source/core/extedit.cxx index b49125332b29..6f6dc2c63afa 100644 --- a/svx/source/core/extedit.cxx +++ b/svx/source/core/extedit.cxx @@ -87,9 +87,17 @@ public: void ExternalToolEditThread::execute() { - Reference<XSystemShellExecute> xSystemShellExecute( - SystemShellExecute::create( ::comphelper::getProcessComponentContext() ) ); - xSystemShellExecute->execute(m_aFileName, OUString(), SystemShellExecuteFlags::URIS_ONLY); + try + { + Reference<XSystemShellExecute> const xSystemShellExecute( + SystemShellExecute::create( ::comphelper::getProcessComponentContext())); + xSystemShellExecute->execute(m_aFileName, OUString(), + SystemShellExecuteFlags::URIS_ONLY); + } + catch (uno::Exception const& e) + { + SAL_WARN("svx", "ExternalToolEditThread: exception: " << e.Message); + } } void ExternalToolEdit::Edit(GraphicObject const*const pGraphicObject) |