Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2014-07-08 10:53:54 +0000
committerNiraj Modi2014-07-08 10:58:06 +0000
commit7b8b59f77ed87d96d9ebb10e1635504f88c3e8ea (patch)
tree054d7338d6f0f0651a74792d83c65cb5e8af3c2a
parentd7358b2f165914812f728ab511c4265cd97974a9 (diff)
downloadeclipse.platform.swt-7b8b59f77ed87d96d9ebb10e1635504f88c3e8ea.tar.gz
eclipse.platform.swt-7b8b59f77ed87d96d9ebb10e1635504f88c3e8ea.tar.xz
eclipse.platform.swt-7b8b59f77ed87d96d9ebb10e1635504f88c3e8ea.zip
Bug 438901 - Style PASSWORD | READ_ONLY without BORDER displays plain
text password Change-Id: I961c4ae2d94f3619f1aa94e5a761c16ca1fe1555 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
index fba9850ab9..f14815edc5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java
@@ -2526,9 +2526,11 @@ int widgetStyle () {
* WM_CTRCOLOR to draw the theme background results in
* pixel corruption. The fix is to use an ES_MULTILINE
* text control instead.
+ * Refer Bug438901:- ES_MULTILINE doesn't apply for:
+ * SWT.PASSWORD | SWT.READ_ONLY style combination.
*/
if ((style & SWT.READ_ONLY) != 0) {
- if ((style & (SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL)) == 0) {
+ if ((style & (SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.PASSWORD)) == 0) {
if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) {
bits |= OS.ES_MULTILINE;
}

Back to the top