diff dwt/custom/CTabItem.d @ 244:a59d51c12b42

work on allow null strings and arrays
author Frank Benoit <benoit@tionex.de>
date Sat, 28 Jun 2008 20:27:21 +0200
parents 36f5cb12e1a2
children fd9c62a2998e
line wrap: on
line diff
--- a/dwt/custom/CTabItem.d	Sat Jun 28 20:18:36 2008 +0200
+++ b/dwt/custom/CTabItem.d	Sat Jun 28 20:27:21 2008 +0200
@@ -1039,7 +1039,8 @@
 }
 public override void setText (String string) {
     checkWidget();
-    if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
+    // DWT extension: allow null string
+    //if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
     if (string==getText()) return;
     super.setText(string);
     shortenedText = null;