diff options
author | Steve Northover <steve> | 2003-06-24 19:25:57 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2003-06-24 19:25:57 +0000 |
commit | e74ef03c81020a20c3053d4fbd3185a9ee6a47da (patch) | |
tree | f4120dcacd0fb84f6cb7a52d76c05a96488e4b57 | |
parent | 5b5f9526c7b9e96aff73ced02ddb3e552cbd7f68 (diff) | |
download | eclipse.platform.swt-e74ef03c81020a20c3053d4fbd3185a9ee6a47da.tar.gz eclipse.platform.swt-e74ef03c81020a20c3053d4fbd3185a9ee6a47da.tar.xz eclipse.platform.swt-e74ef03c81020a20c3053d4fbd3185a9ee6a47da.zip |
*** empty log message ***
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java index feef5853d3..853e7245a6 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java @@ -42,7 +42,7 @@ public class Text extends Scrollable { public static final int LIMIT; public static final String DELIMITER; - static final String PASSWORD = '*'; + static final char PASSWORD = '*'; /* * These values can be different on different platforms. * Therefore they are not initialized in the declaration @@ -92,7 +92,7 @@ static int checkStyle (int style) { style = checkBits (style, SWT.LEFT, SWT.CENTER, SWT.RIGHT, 0, 0, 0); if ((style & SWT.SINGLE) != 0) style &= ~(SWT.H_SCROLL | SWT.V_SCROLL | SWT.WRAP); if ((style & SWT.WRAP) != 0) style |= SWT.MULTI; - if ((style & SWT.MULTI) != 0) style &= SWT.PASSWORD; + if ((style & SWT.MULTI) != 0) style &= ^SWT.PASSWORD; if ((style & (SWT.SINGLE | SWT.MULTI)) != 0) return style; if ((style & (SWT.H_SCROLL | SWT.V_SCROLL)) != 0) { return style | SWT.MULTI; |