Tag: cws_dev300_odbmacros3
User: fs      
Date: 2008-05-08 13:47:22+0000
Modified:
   dba/dbaccess/source/ext/macromigration/migrationengine.cxx

Log:
 don't insist on the XEventsSupplier being preset - new-style reports, for 
instance, don't have it

File Changes:

Directory: /dba/dbaccess/source/ext/macromigration/
===================================================

File [changed]: migrationengine.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ext/macromigration/migrationengine.cxx?r1=1.4.2.7&r2=1.4.2.8
Delta lines:  +6 -2
-------------------
--- migrationengine.cxx 2008-05-08 10:09:02+0000        1.4.2.7
+++ migrationengine.cxx 2008-05-08 13:47:20+0000        1.4.2.8
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: migrationengine.cxx,v $
- * $Revision: 1.4.2.7 $
+ * $Revision: 1.4.2.8 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -1614,7 +1614,11 @@
     {
         try
         {
-            Reference< XEventsSupplier > xSuppEvents( _rDocument.xDocument, 
UNO_QUERY_THROW );
+            Reference< XEventsSupplier > xSuppEvents( _rDocument.xDocument, 
UNO_QUERY );
+            if ( !xSuppEvents.is() )
+                // this is allowed. E.g. new-style reports currently do not 
support this
+                return true;
+
             Reference< XNameReplace > xEvents( xSuppEvents->getEvents(), 
UNO_SET_THROW );
             Sequence< ::rtl::OUString > aEventNames = 
xEvents->getElementNames();
 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to