Changeset 1466 for trunk


Ignore:
Timestamp:
11/29/19 15:39:41 (4 years ago)
Author:
bnemhaus
Message:

When a primary invalidates its bounds, the bounds of its surrogates need to do so as well.

File:
1 edited

Legend:

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

    r1431 r1466  
    33613361                if (_bounds != null) _oldBounds = _bounds;
    33623362                _bounds = null;
     3363                for (Item surrogate: this.getSurrogates()) {
     3364                        surrogate.invalidateBounds();
     3365                }
    33633366        }
    33643367       
     
    41684171
    41694172        public void addToSurrogates(Item surrogate) {
     4173                if (this.getEncryptionLabel() == null) {
     4174                        MessageBay.displayMessage("Only Items with encryption labels can have surrogates.");
     4175                        return;
     4176                }
     4177               
    41704178                this.getParent().removeItem(surrogate);
    41714179                this.surrogateItems.add(surrogate);
Note: See TracChangeset for help on using the changeset viewer.