Changeset 215:4436505b216f
- Timestamp:
- 05/17/08 17:23:08
(5 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Change behaviour of dwt.graphics.GC textExtend(): allow null for string argument
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r213 |
r215 |
|
| 4795 | 4795 | * @return a point containing the extent of the string |
|---|
| 4796 | 4796 | * |
|---|
| 4797 | | * @exception IllegalArgumentException <ul> |
|---|
| 4798 | | * <li>ERROR_NULL_ARGUMENT - if the string is null</li> |
|---|
| 4799 | | * </ul> |
|---|
| 4800 | 4797 | * @exception DWTException <ul> |
|---|
| 4801 | 4798 | * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 4830 | 4827 | * @return a point containing the extent of the string |
|---|
| 4831 | 4828 | * |
|---|
| 4832 | | * @exception IllegalArgumentException <ul> |
|---|
| 4833 | | * <li>ERROR_NULL_ARGUMENT - if the string is null</li> |
|---|
| 4834 | | * </ul> |
|---|
| 4835 | 4829 | * @exception DWTException <ul> |
|---|
| 4836 | 4830 | * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> |
|---|
| … | … | |
| 4839 | 4833 | public Point textExtent(String string, int flags) { |
|---|
| 4840 | 4834 | if (handle is null) DWT.error(DWT.ERROR_GRAPHIC_DISPOSED); |
|---|
| 4841 | | if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| | 4835 | //DWT_CHANGE: allow null string |
|---|
| | 4836 | //if (string is null) DWT.error (DWT.ERROR_NULL_ARGUMENT); |
|---|
| 4842 | 4837 | checkGC(FONT); |
|---|
| 4843 | 4838 | if (data.gdipGraphics !is null) { |
|---|