diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/gallery2/galtheme.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index 5672d9fa9ee3..41f607cef232 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -652,11 +652,19 @@ void GalleryTheme::Actualize( const Link& rActualizeLink, GalleryProgress* pProg sal_uIntPtr nStorErr = 0; + try { SvStorageRef aTempStorageRef( new SvStorage( false, aTmpURL.GetMainURL( INetURLObject::NO_DECODE ), STREAM_STD_READWRITE ) ); aSvDrawStorageRef->CopyTo( aTempStorageRef ); nStorErr = aSvDrawStorageRef->GetError(); } + catch (const css::ucb::ContentCreationException& e) + { + SAL_WARN("svx", "failed to open: " + << aTmpURL.GetMainURL(INetURLObject::NO_DECODE) + << "due to : " << e.Message); + nStorErr = ERRCODE_IO_GENERAL; + } if( !nStorErr ) { |