changeset 185:026ce3b05f57

Label allows setText with null arg
author Frank Benoit <benoit@tionex.de>
date Mon, 10 Mar 2008 16:56:34 +0100
parents 4d06074bb1af
children ee3ee677f5fc
files dwt/widgets/Label.d
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/widgets/Label.d	Mon Mar 10 16:49:04 2008 +0100
+++ b/dwt/widgets/Label.d	Mon Mar 10 16:56:34 2008 +0100
@@ -394,8 +394,7 @@
  */
 public void setText (char[] string) {
     checkWidget ();
-    // DWT extension: allow null for zero length string
-    //if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
+    if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
     if ((style & DWT.SEPARATOR) !is 0) return;
     /*
     * Feature in Windows.  For some reason, SetWindowText() for