Tag: cws_dev300_odbmacros3 User: fs Date: 2008-07-16 15:10:47+0000 Modified: dba/dbaccess/source/core/dataaccess/documentevents.cxx
Log: allow empty events File Changes: Directory: /dba/dbaccess/source/core/dataaccess/ ================================================ File [changed]: documentevents.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/documentevents.cxx?r1=1.1.2.1&r2=1.1.2.2 Delta lines: +3 -3 ------------------- --- documentevents.cxx 2008-07-16 14:22:32+0000 1.1.2.1 +++ documentevents.cxx 2008-07-16 15:10:44+0000 1.1.2.2 @@ -7,7 +7,7 @@ * * $RCSfile: documentevents.cxx,v $ * -* $Revision: 1.1.2.1 $ +* $Revision: 1.1.2.2 $ * * This file is part of OpenOffice.org. * @@ -143,7 +143,7 @@ throw NoSuchElementException( _Name, *this ); Sequence< PropertyValue > aEventDescriptor; - if ( ! ( _Element >>= aEventDescriptor ) ) + if ( _Element.hasValue() && !( _Element >>= aEventDescriptor ) ) throw IllegalArgumentException( _Element.getValueTypeName(), *this, 2 ); // Weird enough, the event assignment UI has the idea of using an empty "EventType" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
