Mercurial > projects > dwt-win
changeset 215:4436505b216f
Change behaviour of dwt.graphics.GC textExtend(): allow null for string argument
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 17 May 2008 23:23:08 +0200 |
parents | a8fed3e56433 |
children | 48de87adead1 |
files | dwt/graphics/GC.d |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/graphics/GC.d Sat May 17 19:23:59 2008 +0200 +++ b/dwt/graphics/GC.d Sat May 17 23:23:08 2008 +0200 @@ -4794,9 +4794,6 @@ * @param string the string to measure * @return a point containing the extent of the string * - * @exception IllegalArgumentException <ul> - * <li>ERROR_NULL_ARGUMENT - if the string is null</li> - * </ul> * @exception DWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> @@ -4829,16 +4826,14 @@ * @param flags the flags specifying how to process the text * @return a point containing the extent of the string * - * @exception IllegalArgumentException <ul> - * <li>ERROR_NULL_ARGUMENT - if the string is null</li> - * </ul> * @exception DWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> */ public Point textExtent(String string, int flags) { if (handle is null) DWT.error(DWT.ERROR_GRAPHIC_DISPOSED); - if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); + //DWT_CHANGE: allow null string + //if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); checkGC(FONT); if (data.gdipGraphics !is null) { Gdip.PointF pt;