at-spi r999 - in trunk: . libspi



Author: liyuan
Date: Wed Mar 19 09:05:36 2008
New Revision: 999
URL: http://svn.gnome.org/viewvc/at-spi?rev=999&view=rev

Log:
2008-03-19  Li Yuan  <li yuan sun com>

        * libspi/document.c: (impl_getAttributes):
        Bug #451553. Return NULL is there are no attributes. Patch from Ginn
        Chen.


Modified:
   trunk/ChangeLog
   trunk/libspi/document.c

Modified: trunk/libspi/document.c
==============================================================================
--- trunk/libspi/document.c	(original)
+++ trunk/libspi/document.c	Wed Mar 19 09:05:36 2008
@@ -105,10 +105,9 @@
   g_return_val_if_fail (document != NULL, NULL);
   
   attributes = atk_document_get_attributes (document);
-  
-  bonobo_return_val_if_fail (attributes != NULL, NULL, ev);
 
-  bonobo_return_val_if_fail (attributes != NULL, NULL, ev);
+  if (!attributes)
+    return NULL;  
 
   /* according to atkobject.h, AtkAttributeSet is a GSList */
   n_attributes = g_slist_length (attributes);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]