Changeset 1424 for trunk


Ignore:
Timestamp:
07/31/19 12:21:45 (5 years ago)
Author:
bln4
Message:

When reconstructing the body on parse, make sure to use the source of XRayable Items

File:
1 edited

Legend:

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

    r1421 r1424  
    647647                Picture pic = ItemUtils.CreatePicture(txt);
    648648               
    649                 // transfer any encryption label that is present
    650                 String encryptionLabel = txt.getEncryptionLabel();
    651                 if (encryptionLabel != null && !encryptionLabel.isEmpty()) {
    652                         pic.setEncryptionLabelOnLoad(encryptionLabel);
    653                 }
    654 
    655649                // if the picture could not be created successfully
    656650                if (pic == null) {
     
    984978                                Logger.Log(e);
    985979                                e.printStackTrace();
    986                                 System.err
    987                                                 .println("**** Have temporarily supressed MessageBay call, as resulted in infinite recursion");
     980                                System.err.println("**** Have temporarily supressed MessageBay call, "
     981                                                + "as resulted in infinite recursion");
    988982                                // MessageBay.warningMessage("Exception occured when loading " +
    989983                                // i.getClass().getSimpleName() + "(ID: "
     
    11691163               
    11701164                for (Item item: primaryBody) {
     1165                       
     1166                        if (item instanceof XRayable && !((XRayable) item).sourceIsAccessible()) {
     1167                                item = ((XRayable) item).getSource();
     1168                        }
     1169                       
    11711170                        String encryptionLabel = item.getEncryptionLabel();
    11721171                        if (encryptionLabel == null || encryptionLabel.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.