Changeset 157:f8001bf383d2

Show
Ignore:
Timestamp:
02/14/08 15:30:05 (10 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

TextLayout? allow null for setText

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • README.txt

    r148 r157  
    2727Search for it (2 matches) and either delete those lines of change =on to =off. 
    2828 
    29 In some situations, you may get linker errors when building the dwt examples.   
     29In some situations, you may get linker errors when building the dwt examples. 
    3030Try adding the "-full" switch to the dsss command line to fix these errors. 
    3131 
    3232Example: 
    3333 
    34 dsss build -full simple   
     34dsss build -full simple 
    3535 
    3636Subsystem linker option 
     
    4545  o MessageBox can be instantiated without parent. Use the Ctor "this( int style )", 
    4646    calling the other ctors will still force a non-null parent. 
     47  o Allow null argument for 
     48        - dwt.graphics.TextLayout setText(char[]) 
    4749 
    4850 
  • dwt/graphics/TextLayout.d

    r81 r157  
    23612361public void setText (char[] text) { 
    23622362    checkLayout(); 
    2363     if (text is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); 
     2363    //PORTING_CHANGE: allow null argument 
     2364    //if (text is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); 
    23642365    if (text==/*eq*/this.text) return; 
    23652366    freeRuns();