[Libreoffice-commits] core.git: dbaccess/source

Lionel Elie Mamane lionel at mamane.lu
Fri Mar 1 23:11:39 PST 2013


 dbaccess/source/core/dataaccess/documentcontainer.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 9330b97595ff899dbea40ced6656f8c39c76c959
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Sat Mar 2 08:10:14 2013 +0100

    fdo#61564 when WrappedTargetException not in specification, do not throw it!
    
    Change-Id: Id3c995557f320b1d0241f0ef5d94b1c9aeb66528

diff --git a/dbaccess/source/core/dataaccess/documentcontainer.cxx b/dbaccess/source/core/dataaccess/documentcontainer.cxx
index 90a8af5..a902640 100644
--- a/dbaccess/source/core/dataaccess/documentcontainer.cxx
+++ b/dbaccess/source/core/dataaccess/documentcontainer.cxx
@@ -39,6 +39,7 @@
 #include "core_resource.hxx"
 #include "core_resource.hrc"
 #include <comphelper/namedvaluecollection.hxx>
+#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
 
 #include <vcl/svapp.hxx>
 #include <osl/mutex.hxx>
@@ -558,9 +559,9 @@ Reference< XComponent > SAL_CALL ODocumentContainer::loadComponentFromURL( const
     {
         throw IllegalArgumentException();
     }
-    catch(const WrappedTargetException&)
+    catch(const WrappedTargetException &e)
     {
-        throw;
+        throw WrappedTargetRuntimeException(e.Message, e.Context, e.TargetException);
     }
     return xComp;
 }


More information about the Libreoffice-commits mailing list