}
if (lastPar != null) {
lastPar.endParagraph();
- ElementListObserver.observe(lastPar, "line", null);
+ ElementListObserver.observe(lastPar, "line", fobj.getId());
if (log.isTraceEnabled()) {
trace.append(" ]");
}
iEndElement--;
// this returns the same KnuthElement
seqIterator.previous();
- tempElement = (KnuthElement) seqIterator.previous();
+ if (seqIterator.hasPrevious()) {
+ tempElement = (KnuthElement) seqIterator.previous();
+ } else {
+ tempElement = null;
+ }
+ }
+ if (tempElement != null) {
+ lastLM = tempElement.getLayoutManager();
}
- lastLM = tempElement.getLayoutManager();
// ignore KnuthGlue and KnuthPenalty objects
// at the beginning of the line