Show
Ignore:
Timestamp:
05/04/08 18:12:38 (7 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

reverted the char[] to String and use the an alias.

Files:

Legend:

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

    r155 r212  
    360360    Font font = style.font; 
    361361    if (font !is null) gc.setFont(font); 
    362     char[] string = ""; 
     362    String string = ""; 
    363363    int type = bullet.type & (ST.BULLET_DOT|ST.BULLET_NUMBER|ST.BULLET_LETTER_LOWER|ST.BULLET_LETTER_UPPER); 
    364364    switch (type) { 
    365365        case ST.BULLET_DOT: string = "\u2022"; break; 
    366         case ST.BULLET_NUMBER: string = to!(char[])(index); break; 
     366        case ST.BULLET_NUMBER: string = to!(String)(index); break; 
    367367        case ST.BULLET_LETTER_LOWER: string = [cast(char) (index % 26 + 97)]; break; 
    368368        case ST.BULLET_LETTER_UPPER: string = [cast(char) (index % 26 + 65)]; break; 
     
    385385int drawLine(int lineIndex, int paintX, int paintY, GC gc, Color widgetBackground, Color widgetForeground) { 
    386386    TextLayout layout = getTextLayout(lineIndex); 
    387     char[] line = content.getLine(lineIndex); 
     387    String line = content.getLine(lineIndex); 
    388388    int lineOffset = content.getOffsetAtLine(lineIndex); 
    389389    int lineLength = line.length; 
     
    732732    } 
    733733    if (layout is null) layout = new TextLayout(device); 
    734     char[] line = content.getLine(lineIndex); 
     734    String line = content.getLine(lineIndex); 
    735735    int lineOffset = content.getOffsetAtLine(lineIndex); 
    736736    int[] segments = null;