Changeset 954
- Timestamp:
- 07/07/15 10:35:32 (9 years ago)
- Location:
- trunk/src/org/expeditee/items
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/Item.java
r940 r954 1176 1176 public void clearTooltips() { 1177 1177 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); 1179 1180 } 1180 1181 -
trunk/src/org/expeditee/items/MagneticConstraint/Utilities/BoxLogic.java
r934 r954 35 35 return ret; 36 36 } 37 37 38 38 public static boolean boxCollision(final Item item) { 39 39 final List<org.expeditee.items.Line> verticalLines = BoxLogic … … 56 56 57 57 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; 61 59 final Line currentLine = Line.getLineContainingToken(item); 62 60 final Paragraph currentParagraph = Paragraph.getParagraphFromLine(currentLine); … … 78 76 if(updateCursor) DisplayIO.MoveCursorToEndOfItem(item); 79 77 FrameIO.ForceSaveFrame(item.getParent()); 80 FrameIO.Reload();81 78 } 82 79 } -
trunk/src/org/expeditee/items/MagneticConstraint/Utilities/Line.java
r934 r954 76 76 77 77 private static Line getLineFromToken(final Item token, final Line acc) { 78 if(token.getMagnetizedItemRight() == -1) { //TODO: This change got accidentally deleted78 if(token.getMagnetizedItemRight() == -1) { 79 79 acc.add(token); 80 80 return acc;
Note:
See TracChangeset
for help on using the changeset viewer.