Changeset 173:97c2675aca38

Show
Ignore:
Timestamp:
03/02/08 17:12:38 (6 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Fix: missing styles in StyleRange?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/custom/StyleRange.d

    r155 r173  
    4545     */ 
    4646    public int fontStyle = DWT.NORMAL; 
     47 
     48/++ 
     49 + DWT extension for clone implementation 
     50 +/ 
     51protected this( StyleRange other ){ 
     52    super( other ); 
     53    start = other.start; 
     54    length = other.length; 
     55    fontStyle = other.fontStyle; 
     56} 
    4757 
    4858/** 
     
    157167 */ 
    158168public /+override+/ Object clone() { 
    159     return new StyleRange( start, length, foreground, background, fontStyle ); 
     169    return new StyleRange( this ); 
    160170} 
    161171 
  • dwt/graphics/TextStyle.d

    r172 r173  
    8484     */ 
    8585    public int rise; 
     86 
     87/++ 
     88 + DWT extension for clone implementation 
     89 +/ 
     90protected this( TextStyle other ){ 
     91    font = other.font; 
     92    foreground = other.foreground; 
     93    background = other.background; 
     94    underline = other.underline; 
     95    strikeout = other.strikeout; 
     96    metrics = other.metrics; 
     97    rise = other.rise; 
     98} 
    8699 
    87100/**