Changeset 47


Ignore:
Timestamp:
05/14/08 18:32:52 (16 years ago)
Author:
ra33
Message:

Fixed bug caused by change to make items picked up from an overlay and moved... remain on the overlay.

Bug caused items created with Frame.CreateItem... to be anchored onto the frame which had the itemTemplate that was used to create them.

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

Legend:

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

    r38 r47  
    11421142                Text t = createBlankText(text);
    11431143                t.setText(text);
    1144 
    11451144                return t;
    11461145        }
     
    11581157                t.setPosition(DisplayIO.getMouseX(), DisplayIO.getMouseY());
    11591158                t.setText("");
     1159                t.setParent(this);
    11601160                return t;
    11611161        }
  • trunk/src/org/expeditee/gui/FrameMouseActions.java

    r41 r47  
    19801980                }
    19811981                // update the items ID to prevent conflicts with the current frame
    1982                 if (toAnchor.getID() < 0 || current.getItems().contains(toAnchor))
    1983                         ;
     1982                //if (toAnchor.getID() < 0 || current.getItems().contains(toAnchor))
     1983                //      ;
    19841984                toAnchor.setID(current.getNextItemID());
    19851985                toAnchor.setOffset(0, 0);
Note: See TracChangeset for help on using the changeset viewer.