# HG changeset patch # User Frank Benoit # Date 1203021005 -3600 # Node ID f8001bf383d2fb136e65e5f1f964cd115f13dd72 # Parent fed5552a24a3b93d4e05cad52ac857765b973d2b TextLayout allow null for setText diff -r fed5552a24a3 -r f8001bf383d2 README.txt --- a/README.txt Thu Feb 14 21:27:56 2008 +0100 +++ b/README.txt Thu Feb 14 21:30:05 2008 +0100 @@ -26,12 +26,12 @@ Disable this option in the dsss/etc/rebuild/dmd-win-tango file. Search for it (2 matches) and either delete those lines of change =on to =off. -In some situations, you may get linker errors when building the dwt examples. +In some situations, you may get linker errors when building the dwt examples. Try adding the "-full" switch to the dsss command line to fix these errors. Example: -dsss build -full simple +dsss build -full simple Subsystem linker option ======================= @@ -44,6 +44,8 @@ ======================== o MessageBox can be instantiated without parent. Use the Ctor "this( int style )", calling the other ctors will still force a non-null parent. + o Allow null argument for + - dwt.graphics.TextLayout setText(char[]) diff -r fed5552a24a3 -r f8001bf383d2 dwt/graphics/TextLayout.d --- a/dwt/graphics/TextLayout.d Thu Feb 14 21:27:56 2008 +0100 +++ b/dwt/graphics/TextLayout.d Thu Feb 14 21:30:05 2008 +0100 @@ -2360,7 +2360,8 @@ */ public void setText (char[] text) { checkLayout(); - if (text is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); + //PORTING_CHANGE: allow null argument + //if (text is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (text==/*eq*/this.text) return; freeRuns(); this.text = text;