tdf#116542 a11y: Make R/O accessibleedit use STATIC role

as improvement to tdf#86661 which had made it a LABEL as first improvement
over TEXT.

Change-Id: I0e5ee7b680ec943f38526b98cb904d0f9f916d85
Reviewed-on: https://gerrit.libreoffice.org/58736
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
This commit is contained in:
Samuel Thibault 2018-08-08 13:39:31 +02:00 committed by Thorsten Behrens
parent aa0adc7a4f
commit ac475d8d6f

View file

@ -216,7 +216,7 @@ sal_Int16 VCLXAccessibleEdit::implGetAccessibleRole( )
if ( pEdit && ( pEdit->IsPassword() || pEdit->GetEchoChar() ) )
nRole = AccessibleRole::PASSWORD_TEXT;
else if ( pEdit && ( pEdit->GetStyle() & WB_READONLY ) )
nRole = AccessibleRole::LABEL;
nRole = AccessibleRole::STATIC;
else
nRole = AccessibleRole::TEXT;