Mercurial > projects > dwt-addons
changeset 121:c0304616ea23
Fix: tango assertion error, see tango ticket 1237
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 11 Aug 2008 17:18:41 +0200 |
parents | 3b2353d77f37 |
children | 9d0585bcb7aa |
files | dwtx/dwtxhelper/Collection.d |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dwtx/dwtxhelper/Collection.d Mon Aug 11 11:14:42 2008 +0200 +++ b/dwtx/dwtxhelper/Collection.d Mon Aug 11 17:18:41 2008 +0200 @@ -1712,9 +1712,11 @@ return null; } Object[] toArray(){ + if( list.size() is 0 ) return null; // workaround tango ticket 1237 return list.toArray(); } Object[] toArray(Object[] a){ + if( list.size() is 0 ) return a[0 .. 0]; // workaround tango ticket 1237 return list.toArray( a ); } String toString(){