Mercurial > projects > dwt-linux
diff dwt/widgets/Tracker.d @ 255:5a30aa9820f3
removed tango.stdc.stringz imports and allow null for arrays and string arguments.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 15 Jun 2008 22:32:20 +0200 |
parents | ce446666f5a2 |
children | c0d810de7093 |
line wrap: on
line diff
--- a/dwt/widgets/Tracker.d Sun Jun 08 15:11:48 2008 +0200 +++ b/dwt/widgets/Tracker.d Sun Jun 15 22:32:20 2008 +0200 @@ -955,7 +955,7 @@ * @param rectangles the bounds of the rectangles to be drawn * * @exception IllegalArgumentException <ul> - * <li>ERROR_NULL_ARGUMENT - if the set of rectangles is null or contains a null rectangle</li> + * <li>ERROR_NULL_ARGUMENT - if the set of rectangles contains a null rectangle</li> * </ul> * @exception DWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> @@ -964,7 +964,8 @@ */ public void setRectangles (Rectangle [] rectangles) { checkWidget(); - if (rectangles is null) error (DWT.ERROR_NULL_ARGUMENT); + // DWT extension: allow null for zero length string + //if (rectangles is null) error (DWT.ERROR_NULL_ARGUMENT); int length = rectangles.length; this.rectangles = new Rectangle [length]; for (int i = 0; i < length; i++) {