Mercurial > projects > dwt-mac
changeset 153:8433dabeb15e
Fixed the password style for text fields
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 11 Jun 2009 01:36:32 +0200 |
parents | 834420cb1486 |
children | 535243e6d16a |
files | dwt/widgets/Text.d |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/widgets/Text.d Thu Jun 11 01:20:52 2009 +0200 +++ b/dwt/widgets/Text.d Thu Jun 11 01:36:32 2009 +0200 @@ -96,7 +96,7 @@ alias Scrollable.translateTraversal translateTraversal; int textLimit, tabs = 8; - wchar echoCharacter; + wchar echoCharacter = '\0'; bool doubleClick, receivingFocus; wchar[] hiddenText, message; NSRange* selectionRange; @@ -1499,7 +1499,7 @@ void setEditText (wchar[] string) { wchar [] buffer; - if (((style & DWT.PASSWORD) is 0) && echoCharacter !is '\0') { + if ((style & DWT.PASSWORD) is 0 && echoCharacter !is '\0') { hiddenText = string; buffer = new wchar [Math.min(hiddenText.length (), textLimit)]; for (int i = 0; i < buffer.length; i++) buffer [i] = echoCharacter;