[Libreoffice-commits] .: vcl/aqua
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Sep 10 02:53:06 PDT 2012
vcl/aqua/source/a11y/aqua11ywrapper.mm | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
New commits:
commit 3234b715b5a6d13ee673b41066eb565706be5ec9
Author: Michael Meeks <michael.meeks at suse.com>
Date: Mon Sep 10 12:50:44 2012 +0300
fdo#47368: Fix for infinite recursion
See bug for discussion.
Change-Id: Id45dd2902bd2cb68618c3e7324867f226c025698
diff --git a/vcl/aqua/source/a11y/aqua11ywrapper.mm b/vcl/aqua/source/a11y/aqua11ywrapper.mm
index 86bc720..a7bad3c 100644
--- a/vcl/aqua/source/a11y/aqua11ywrapper.mm
+++ b/vcl/aqua/source/a11y/aqua11ywrapper.mm
@@ -970,15 +970,9 @@ Reference < XAccessibleContext > hitTestRunner ( com::sun::star::awt::Point poin
com::sun::star::awt::Point location = rxAccessibleComponent -> getLocationOnScreen();
com::sun::star::awt::Point hitPoint ( point.X - location.X , point.Y - location.Y);
Reference < XAccessible > rxAccessible = rxAccessibleComponent -> getAccessibleAtPoint ( hitPoint );
- if ( rxAccessible.is() && rxAccessible -> getAccessibleContext().is() ) {
- if ( rxAccessible -> getAccessibleContext() -> getAccessibleChildCount() > 0 ) {
- hitChild = hitTestRunner ( point, rxAccessible -> getAccessibleContext() );
- if ( ! hitChild.is() ) {
- hitChild = rxAccessible -> getAccessibleContext();
- }
- } else {
- hitChild = rxAccessible -> getAccessibleContext();
- }
+ if ( rxAccessible.is() && rxAccessible -> getAccessibleContext().is() &&
+ rxAccessible -> getAccessibleContext() -> getAccessibleChildCount() == 0 ) {
+ hitChild = rxAccessible -> getAccessibleContext();
}
}
if ( !hitChild.is() && rxAccessibleContext -> getAccessibleChildCount() > 0 ) { // special treatment for e.g. comboboxes
More information about the Libreoffice-commits
mailing list