Changeset 157:f8001bf383d2
- Timestamp:
- 02/14/08 15:30:05
(10 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
TextLayout? allow null for setText
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r148 |
r157 |
|
| 27 | 27 | Search for it (2 matches) and either delete those lines of change =on to =off. |
|---|
| 28 | 28 | |
|---|
| 29 | | In some situations, you may get linker errors when building the dwt examples. |
|---|
| | 29 | In some situations, you may get linker errors when building the dwt examples. |
|---|
| 30 | 30 | Try adding the "-full" switch to the dsss command line to fix these errors. |
|---|
| 31 | 31 | |
|---|
| 32 | 32 | Example: |
|---|
| 33 | 33 | |
|---|
| 34 | | dsss build -full simple |
|---|
| | 34 | dsss build -full simple |
|---|
| 35 | 35 | |
|---|
| 36 | 36 | Subsystem linker option |
|---|
| … | … | |
| 45 | 45 | o MessageBox can be instantiated without parent. Use the Ctor "this( int style )", |
|---|
| 46 | 46 | calling the other ctors will still force a non-null parent. |
|---|
| | 47 | o Allow null argument for |
|---|
| | 48 | - dwt.graphics.TextLayout setText(char[]) |
|---|
| 47 | 49 | |
|---|
| 48 | 50 | |
|---|
| r81 |
r157 |
|
| 2361 | 2361 | public void setText (char[] text) { |
|---|
| 2362 | 2362 | checkLayout(); |
|---|
| 2363 | | if (text is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 2363 | //PORTING_CHANGE: allow null argument |
|---|
| | 2364 | //if (text is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); |
|---|
| 2364 | 2365 | if (text==/*eq*/this.text) return; |
|---|
| 2365 | 2366 | freeRuns(); |
|---|