Changeset 185:026ce3b05f57

Show
Ignore:
Timestamp:
03/10/08 11:56:34 (6 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Label allows setText with null arg

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/widgets/Label.d

    r180 r185  
    395395public void setText (char[] string) { 
    396396    checkWidget (); 
    397     // DWT extension: allow null for zero length string 
    398     //if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 
     397    if (string is null) error (DWT.ERROR_NULL_ARGUMENT); 
    399398    if ((style & DWT.SEPARATOR) !is 0) return; 
    400399    /*