Changeset 637


Ignore:
Timestamp:
12/18/13 10:30:05 (11 years ago)
Author:
jts21
Message:

Fix bug where merging attributes can create ghost items. Not an ideal fix though (doesn't correct the source of the problem, just patches it up afterwards so the user doesn't see anything wrong)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/FrameMouseActions.java

    r633 r637  
    996996                                        left = merge(FreeItems.getInstance(), clicked);
    997997                                }
     998                                Collection<Item> toDelete = new LinkedList<Item>();
     999                                toDelete.addAll(FreeItems.getInstance());
     1000                                toDelete.removeAll(left);
    9981001                                anchor(left);
    9991002                                FreeItems.getInstance().clear();
     1003                                DisplayIO.getCurrentFrame().removeAllItems(toDelete);
    10001004                                updateCursor();
    10011005                                // Make sure the dot goes away when anchoring a line end behind
     
    28472851                Item res = null;
    28482852
    2849                 for (Item i : merger) {
     2853                for (Item i : merger) {                 
    28502854                        if (!i.isVisible())
    28512855                                continue;
Note: See TracChangeset for help on using the changeset viewer.