vcl/unx/gtk/a11y/atklistener.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ec13016a3cefc2c2f9af799e5c30799d56670ad1
Author: Caolán McNamara <caol...@redhat.com>
Date:   Thu Oct 3 14:57:12 2013 +0100

    Resolves: rhbz#1012390 avoid scary 'the sky is falling' a11y warning
    
    Change-Id: I543e00048544eb7835cf1f0f31794e5a8bbb1962

diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx
index 2ff3f0c..b9f8d04 100644
--- a/vcl/unx/gtk/a11y/atklistener.cxx
+++ b/vcl/unx/gtk/a11y/atklistener.cxx
@@ -148,7 +148,7 @@ void AtkListener::handleChildAdded(
     const uno::Reference< accessibility::XAccessibleContext >& rxParent,
     const uno::Reference< accessibility::XAccessible>& rxAccessible)
 {
-    AtkObject * pChild = atk_object_wrapper_ref( rxAccessible );
+    AtkObject * pChild = rxAccessible.is() ? atk_object_wrapper_ref( 
rxAccessible ) : NULL;
 
     if( pChild )
     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to