Ignore:
Timestamp:
08/15/19 12:57:28 (5 years ago)
Author:
bln4
Message:

Recoding of the Labels class to improve surrogate mode functionality. Surrogate mode is now maintained when you navigate from one frame to another, even if that frame has a different set of labels. Completely different sets of labels cause Expeditee to exit surrogate mode with a message to the user.

File:
1 edited

Legend:

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

    r1428 r1431  
    3939import org.expeditee.encryption.core.EncryptedImage;
    4040import org.expeditee.encryption.items.surrogates.Label;
     41import org.expeditee.encryption.items.surrogates.Label.LabelInfo;
    4142import org.expeditee.encryption.items.surrogates.Label.LabelResult;
    4243import org.expeditee.gio.EcosystemManager;
     
    786787                                _image = Image.getImage(_path);
    787788                        } else {
    788                                 LabelResult result = Label.getLabel(encryptionLabel);
    789                                 if (result == LabelResult.SuccessResolveLabelToKey) {
     789                                LabelInfo result = Label.getLabel(encryptionLabel);
     790                                if (result.is(LabelResult.SuccessResolveLabelToKey)) {
    790791                                        _image = EncryptedImage.getImage(_path, result.key);
    791792                                } else {
Note: See TracChangeset for help on using the changeset viewer.