Ignore:
Timestamp:
11/02/08 13:05:01 (16 years ago)
Author:
ra33
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/DefaultTreeWriter.java

    r290 r376  
    1515
    1616        private int _indent = 0;
    17        
     17
    1818        // the list of frames currently being processed
    1919        private Stack<FrameCounter> _frames = new Stack<FrameCounter>();
     
    8181
    8282                        Frame next = FrameIO.LoadFrame(cur.frame);
     83
    8384                        if (next == null) {
    8485                                return;
    8586                        }
     87
     88                        Text title = next.getTitleItem();
    8689
    8790                        // the items on the frame currently being processed.
     
    109112                                // ignore annotation and framenames
    110113                                if (item.getID() >= 0) {
    111                                         //Only follow the links of text items
    112                                         if (item instanceof Text && item.getLink() != null
    113                                                         && !item.isAnnotation()) {
     114                                        // Only follow the links of non annotation text items
     115                                        boolean followLink = item instanceof Text
     116                                                        && item.getLink() != null
     117                                                        && (!item.isAnnotation() /*|| item.getText()
     118                                                                        .toLowerCase().equals("@next")*/);
     119
     120                                        if (followLink) {
    114121                                                cur.index = i;
    115122                                                _frames.push(cur);
     
    139146                                                // Dont write out the title here because it is written
    140147                                                // out earlier
    141                                         } else if (item != next.getTitleItem())
     148                                        } else if (item != title)
    142149                                                this.writeItem(item);
    143150                                }
     
    177184                }
    178185        }
    179        
     186
    180187        protected int getIndent() {
    181188                return _indent;
Note: See TracChangeset for help on using the changeset viewer.