Changeset 946


Ignore:
Timestamp:
Nov 14, 2010, 8:08:36 PM (7 years ago)
Author:
stefan
Message:

fixed bug that edit range was removed by background color of text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sce/component/SCEPane.java

    r852 r946  
    235235    }
    236236
    237     // draw the selection
    238     if (document.hasEditRange()) {
    239       editRangeHighlight.paint(g2D, this, document.getEditRangeStart(), document.getEditRangeEnd());
    240     }
    241 
    242237    // draw the text
    243238    for (int line = startRow; line < endRow; line++) {
     
    248243      g2D.drawString(attributedString.getIterator(), posx, posy);
    249244    }
     245
     246    // draw the edit range
     247    if (document.hasEditRange()) {
     248      editRangeHighlight.paint(g2D, this, document.getEditRangeStart(), document.getEditRangeEnd());
     249    }
    250250
    251251    // draw the border
Note: See TracChangeset for help on using the changeset viewer.