# HG changeset patch # User Frank Benoit # Date 1215351222 -7200 # Node ID b6e695a1796963f992826866fd9da62cb56541cc # Parent e10de397beb1f3475a754c912dd250238394cba2 allow null string diff -r e10de397beb1 -r b6e695a17969 dwt/graphics/GC.d --- 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 * @exception DWTException @@ -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) {