diff options
author | Jan Holesovsky <kendy@collabora.com> | 2016-01-14 11:52:18 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2016-01-14 11:57:14 +0100 |
commit | 643a33486e2c9b2700c416090dfa6bbe75ce47ae (patch) | |
tree | 5ff9f25adb172042ec914304cb1897f63c18174d /sfx2/source/doc | |
parent | ac91a81b7b47fc9eba24455d34e2168309ea51d1 (diff) |
sfx2: Convert the exception to one that we actually announce.
Otherwise saving to a non-existing http:// URL leads to a crash.
Change-Id: Ia4b49e2872616545dcedb2fc5553cf5a20a1f97d
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 9c21b989ddc0..850de4d41af9 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -1696,7 +1696,16 @@ void SAL_CALL SfxBaseModel::storeToURL( const OUString& rURL { m_pData->m_pObjectShell->AddLog( OSL_LOG_PREFIX "storeToURL" ); SfxSaveGuard aSaveGuard(this, m_pData, false); - impl_store( rURL, rArgs, true ); + try { + impl_store(rURL, rArgs, true); + } + catch (const uno::Exception &e) + { + // convert to the exception we announce in the throw + // (eg. neon likes to throw InteractiveAugmentedIOException which + // is not an io::IOException) + throw io::IOException(e.Message, e.Context); + } } } |