diff options
author | Carolyn MacLeod <carolyn> | 2010-03-24 15:24:00 +0000 |
---|---|---|
committer | Carolyn MacLeod <carolyn> | 2010-03-24 15:24:00 +0000 |
commit | 57c13ce3962c12cfb80c1deff10334aea0d67213 (patch) | |
tree | 8e64fb7c01f29d557e9dc099c570bb1bcc0784a7 | |
parent | 70509869d0d2bed63fc32eb5577991b668d72df8 (diff) | |
download | eclipse.platform.swt-57c13ce3962c12cfb80c1deff10334aea0d67213.tar.gz eclipse.platform.swt-57c13ce3962c12cfb80c1deff10334aea0d67213.tar.xz eclipse.platform.swt-57c13ce3962c12cfb80c1deff10334aea0d67213.zip |
accessibility state needs both single and multi
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java index 2b2672a4d7..2da6282b41 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java @@ -6712,7 +6712,8 @@ void initializeAccessible() { if (isFocusControl()) state |= ACC.STATE_FOCUSED; if (!isVisible()) state |= ACC.STATE_INVISIBLE; if (!getEditable()) state |= ACC.STATE_READONLY; - if ((getStyle() & SWT.SINGLE) == 0) state |= ACC.STATE_MULTILINE; + if (isSingleLine()) state |= ACC.STATE_SINGLELINE; + else state |= ACC.STATE_MULTILINE; e.detail = state; } public void getValue(AccessibleControlEvent e) { |