Changeset 954


Ignore:
Timestamp:
07/07/15 10:35:32 (9 years ago)
Author:
bln4
Message:
 
Location:
trunk/src/org/expeditee/items
Files:
3 edited

Legend:

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

    r940 r954  
    11761176        public void clearTooltips() {
    11771177                final Frame frame = this.getParent();
    1178                 for(final Text tooltip: _tooltip.getTooltips()) frame.removeItem(tooltip);
     1178                if(_tooltip != null)
     1179                        for(final Text tooltip: _tooltip.getTooltips()) frame.removeItem(tooltip);
    11791180        }
    11801181       
  • trunk/src/org/expeditee/items/MagneticConstraint/Utilities/BoxLogic.java

    r934 r954  
    3535                return ret;
    3636        }
    37 
     37       
    3838        public static boolean boxCollision(final Item item) {
    3939                final List<org.expeditee.items.Line> verticalLines = BoxLogic
     
    5656
    5757        public static void resolveCollision(final Item item, final MagneticConstraintAction remagnet) {
    58                 //System.err.println("Resolving box collision");
    59                 boolean updateCursor = false;
    60                 if(FrameUtils.getCurrentItem() == item) updateCursor = true;
     58                boolean updateCursor = FrameUtils.getCurrentItem() == item;
    6159                final Line currentLine = Line.getLineContainingToken(item);
    6260                final Paragraph currentParagraph = Paragraph.getParagraphFromLine(currentLine);
     
    7876                if(updateCursor) DisplayIO.MoveCursorToEndOfItem(item);
    7977                FrameIO.ForceSaveFrame(item.getParent());
    80                 FrameIO.Reload();
    8178        }
    8279}
  • trunk/src/org/expeditee/items/MagneticConstraint/Utilities/Line.java

    r934 r954  
    7676               
    7777        private static Line getLineFromToken(final Item token, final Line acc) {
    78                 if(token.getMagnetizedItemRight() == -1) { //TODO: This change got accidentally deleted
     78                if(token.getMagnetizedItemRight() == -1) {
    7979                        acc.add(token);
    8080                        return acc;
Note: See TracChangeset for help on using the changeset viewer.