Changeset 215:4436505b216f

Show
Ignore:
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
  • dwt/graphics/GC.d

    r213 r215  
    47954795 * @return a point containing the extent of the string 
    47964796 * 
    4797  * @exception IllegalArgumentException <ul> 
    4798  *    <li>ERROR_NULL_ARGUMENT - if the string is null</li> 
    4799  * </ul> 
    48004797 * @exception DWTException <ul> 
    48014798 *    <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> 
     
    48304827 * @return a point containing the extent of the string 
    48314828 * 
    4832  * @exception IllegalArgumentException <ul> 
    4833  *    <li>ERROR_NULL_ARGUMENT - if the string is null</li> 
    4834  * </ul> 
    48354829 * @exception DWTException <ul> 
    48364830 *    <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> 
     
    48394833public Point textExtent(String string, int flags) { 
    48404834    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); 
    48424837    checkGC(FONT); 
    48434838    if (data.gdipGraphics !is null) {