RetrieveMarkers work currently anyway.)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_KnuthStylePageBreaking@198621
13f79535-47bb-0310-9956-
ffa450edef68
PageViewport pv = areaTreeModel.getPage(seq, page);
mark = (Marker)pv.getMarker(name, Constants.EN_LEWP);
if (mark != null) {
- rm.bindMarker(mark);
- return rm;
+ break;
}
page--;
if (page < 0 && doc && seq > 1) {
if (mark == null) {
log.debug("found no marker with name: " + name);
+ return null;
+ } else {
+ rm.bindMarker(mark);
+ return rm;
}
-
- return null;
}
private PageViewport makeNewPage(boolean bIsBlank, boolean bIsFirst, boolean bIsLast) {