Mercurial > projects > dwt-linux
changeset 263:b6e695a17969
allow null string
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 06 Jul 2008 15:33:42 +0200 |
parents | e10de397beb1 |
children | bfafc891369e |
files | dwt/graphics/GC.d |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
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) {