Changeset 407


Ignore:
Timestamp:
11/18/08 16:12:01 (16 years ago)
Author:
ra33
Message:

fixed bug causing GHOST arrowheads to be left behind when unreeling...

Location:
trunk/src/org/expeditee/items
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/ItemUtils.java

    r365 r407  
    654654                copy.removeAllConstraints();
    655655
     656                for(Line l: origEnd.getLines()){
     657                        l.invalidateAll();
     658                }
     659               
    656660                // create a new line
    657661                Frame currentFrame = DisplayIO.getCurrentFrame();
  • trunk/src/org/expeditee/items/Line.java

    r362 r407  
    11541154
    11551155                        arrowLength += ((thickness * 2) + 1);
    1156                         int nArrowLength = (int) arrowLength;
    1157 
    1158                         // NAIVE version - but probably more efficient in the long run...
    1159                         // overall
    1160                         // as opposed to advanced/expensive calculations for getting exact
    1161                         // bounding box
     1156                        int nArrowLength = (int) (arrowLength + 1);
     1157
     1158                        /* NAIVE version - but probably more efficient in the long run...
     1159                         overall as opposed to advanced/expensive calculations for getting exact
     1160                         bounding box */
    11621161                        Rectangle arrowBounds = new Rectangle(_end.getX() - nArrowLength,
    11631162                                        _end.getY() - nArrowLength, 2 * nArrowLength,
Note: See TracChangeset for help on using the changeset viewer.