Mercurial > projects > dwt-win
diff dwt/widgets/Label.d @ 241:b4846fd3437a
work on allow null strings and arrays
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 23 Jun 2008 01:45:58 +0200 |
parents | 36f5cb12e1a2 |
children | fd9c62a2998e |
line wrap: on
line diff
--- a/dwt/widgets/Label.d Sat Jun 21 02:24:49 2008 +0200 +++ b/dwt/widgets/Label.d Mon Jun 23 01:45:58 2008 +0200 @@ -391,9 +391,6 @@ * * @param string the new text * - * @exception IllegalArgumentException <ul> - * <li>ERROR_NULL_ARGUMENT - if the text is null</li> - * </ul> * @exception DWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> @@ -401,9 +398,9 @@ */ public void setText (String string) { checkWidget (); - if (string is null) error (DWT.ERROR_NULL_ARGUMENT); // DWT extensions allow null argument - //if ((style & DWT.SEPARATOR) !is 0) return; + //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); + if ((style & DWT.SEPARATOR) !is 0) return; /* * Feature in Windows. For some reason, SetWindowText() for * static controls redraws the control, even when the text has