diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-29 10:24:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-29 10:24:43 +0100 |
commit | 9e1dfa577973ba8bbe71159e76b1e7925c23f32a (patch) | |
tree | 88428fb3131cd21b9656405509f21b29cb457791 | |
parent | 7fe95cc52cf08b9351bd9af0a0a99941e4795233 (diff) |
Related: fdo#38704 make simpleMapNativeRoleFrom::accessibleContext safer
-rw-r--r-- | vcl/aqua/source/a11y/aqua11yrolehelper.mm | 4 |
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 |