Changeset 373


Ignore:
Timestamp:
10/26/08 17:03:17 (16 years ago)
Author:
bjn8
Message:

Fixed bug

File:
1 edited

Legend:

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

    r362 r373  
    966966                                                                continue;
    967967                                                        }
    968                                                         Frame overlayFrame = FrameIO.LoadFrame(link);
     968                                                        Frame overlayFrame = null;
     969                                                       
     970                                                        Frame current = DisplayIO.getCurrentFrame();
     971                                                        if (current != null) {
     972                                                                for (Overlay o : current.getOverlays()) {
     973                                                                        if (o.Frame.getName().equalsIgnoreCase(link))
     974                                                                                overlayFrame = o.Frame;
     975                                                                }
     976                                                        }
     977                                                        if (overlayFrame == null) overlayFrame = FrameIO.LoadFrame(link);
     978                                                       
    969979                                                        // get level if specified
    970980                                                        String level = new AttributeValuePair(i.getText())
     
    10751085                FrameIO.ResumeCache();
    10761086
    1077                 synchronized (toParse) { // BROOK: This does not appear to do
    1078                         // anything! Their seems to be no
    1079                         // thread-safe protocol for this project...
    1080                         toParse.clearOverlays();
    1081                         toParse.clearVectors();
    1082                         toParse.addAllOverlays(overlays);
    1083                         toParse.addAllVectors(vectors);
    1084                 }
     1087                toParse.clearOverlays();
     1088                toParse.clearVectors();
     1089                toParse.addAllOverlays(overlays);
     1090                toParse.addAllVectors(vectors);
     1091               
    10851092        }
    10861093
Note: See TracChangeset for help on using the changeset viewer.