Mercurial > projects > dwt-linux
diff dwt/graphics/GC.d @ 263:b6e695a17969
allow null string
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 06 Jul 2008 15:33:42 +0200 |
parents | c0d810de7093 |
children |
line wrap: on
line diff
--- a/dwt/graphics/GC.d Sun Jul 06 15:33:12 2008 +0200 +++ b/dwt/graphics/GC.d Sun Jul 06 15:33:42 2008 +0200 @@ -1957,9 +1957,6 @@ * * @param pointArray an array of alternating x and y values which are the vertices of the polygon * - * @exception IllegalArgumentException <ul> - * <li>ERROR_NULL_ARGUMENT if pointArray is null</li> - * </ul> * @exception DWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> @@ -1968,7 +1965,8 @@ */ public void fillPolygon(int[] pointArray) { if (handle is null) DWT.error(DWT.ERROR_GRAPHIC_DISPOSED); - if (pointArray is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); + // DWT extension: allow null array + //if (pointArray is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); checkGC(FILL); auto cairo = data.cairo; if (cairo !is null) {