summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-29 10:24:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-29 10:24:43 +0100
commit5efca1417e430a0f1ba169638955d3b5cf921dde (patch)
tree2e898850afdad98219903ab54bd584884434cb4a
parentff0f592043b9724bc021ee6fad65d6fdfbb19208 (diff)
Related: fdo#38704 make simpleMapNativeRoleFrom::accessibleContext safer
-rw-r--r--vcl/aqua/source/a11y/aqua11yrolehelper.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/aqua/source/a11y/aqua11yrolehelper.mm b/vcl/aqua/source/a11y/aqua11yrolehelper.mm
index cfc052e96b..9e6536da98 100644
--- a/vcl/aqua/source/a11y/aqua11yrolehelper.mm
+++ b/vcl/aqua/source/a11y/aqua11yrolehelper.mm
@@ -42,6 +42,10 @@ using namespace ::com::sun::star::uno;
+(id)simpleMapNativeRoleFrom: (XAccessibleContext *) accessibleContext {
id nativeRole = nil;
+
+ if (accessibleContext == NULL)
+ return nativeRole;
+
switch( accessibleContext -> getAccessibleRole() ) {
#define MAP(a,b) \
case a: nativeRole = b; break