Mercurial > projects > dwt-win
comparison 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 |
comparison
equal
deleted
inserted
replaced
243:ecb80b2a89e1 | 244:a59d51c12b42 |
---|---|
1037 parent.updateItems(); | 1037 parent.updateItems(); |
1038 parent.redrawTabs(); | 1038 parent.redrawTabs(); |
1039 } | 1039 } |
1040 public override void setText (String string) { | 1040 public override void setText (String string) { |
1041 checkWidget(); | 1041 checkWidget(); |
1042 if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); | 1042 // DWT extension: allow null string |
1043 //if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); | |
1043 if (string==getText()) return; | 1044 if (string==getText()) return; |
1044 super.setText(string); | 1045 super.setText(string); |
1045 shortenedText = null; | 1046 shortenedText = null; |
1046 shortenedTextWidth = 0; | 1047 shortenedTextWidth = 0; |
1047 if (!parent.updateTabHeight(false)) { | 1048 if (!parent.updateTabHeight(false)) { |