Mercurial > projects > dwt-win
changeset 157:f8001bf383d2
TextLayout allow null for setText
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 14 Feb 2008 21:30:05 +0100 |
parents | fed5552a24a3 |
children | b975f20fd4ca |
files | README.txt dwt/graphics/TextLayout.d |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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[])
--- 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;