diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unoshap4.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx index 4d7f29848733..3fac4a0d2f7b 100644 --- a/svx/source/unodraw/unoshap4.cxx +++ b/svx/source/unodraw/unoshap4.cxx @@ -22,6 +22,7 @@ #include <com/sun/star/embed/NoVisualAreaSizeException.hpp> #include <com/sun/star/embed/Aspects.hpp> #include <com/sun/star/task/XInteractionHandler.hpp> +#include <com/sun/star/ucb/CommandFailedException.hpp> #include <vcl/virdev.hxx> #include <svx/svdoole2.hxx> @@ -947,10 +948,18 @@ bool SvxMediaShape::getPropertyValueImpl( const OUString& rName, const SfxItemPr catch (const css::ucb::ContentCreationException& e) { throw css::lang::WrappedTargetException( - "Error Getting InputStream!", + "ContentCreationException Getting InputStream!", static_cast < OWeakObject * > ( this ), makeAny( e ) ); } + catch (const css::ucb::CommandFailedException& e) + { + throw css::lang::WrappedTargetException( + "CommandFailedException Getting InputStream!", + static_cast < OWeakObject * > ( this ), + makeAny( e ) ); + } + break; case OWN_ATTR_MEDIA_TEMPFILEURL: |