summaryrefslogtreecommitdiff
path: root/vcl/aqua/source/a11y/aqua11yrolehelper.mm
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
commit9e1dfa577973ba8bbe71159e76b1e7925c23f32a (patch)
tree88428fb3131cd21b9656405509f21b29cb457791 /vcl/aqua/source/a11y/aqua11yrolehelper.mm
parent7fe95cc52cf08b9351bd9af0a0a99941e4795233 (diff)
Related: fdo#38704 make simpleMapNativeRoleFrom::accessibleContext safer
Diffstat (limited to 'vcl/aqua/source/a11y/aqua11yrolehelper.mm')
-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 cfc052e96beb..9e6536da98bd 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