Changeset 742


Ignore:
Timestamp:
01/23/14 09:44:46 (10 years ago)
Author:
jts21
Message:

Add HFormat operations to undo stack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/agents/HFormat.java

    r741 r742  
    3838                                yThreshold = t.getSize();
    3939                        }else{
     40                                if(t.getY() != anchorY && !changedItems.contains(t)) {
     41                                        Item copy = t.copy();
     42                                        copy.setID(t.getID());
     43                                        changedItems.add(copy);
     44                                }
    4045                                t.setY(anchorY);
    4146                        }
    4247                }
    4348               
    44 
     49                System.out.println(changedItems);
     50                start.addToUndo(changedItems);
    4551                return null;
    4652        }
Note: See TracChangeset for help on using the changeset viewer.