From: Jeremias Maerki Date: Mon, 29 May 2006 15:05:22 +0000 (+0000) Subject: Take a shortcut when page number is already resolved. Without this there was sometime... X-Git-Tag: fop-0_93~212 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4d9ed0b260f336352b39db3fddbada4086f2abcc;p=xmlgraphics-fop.git Take a shortcut when page number is already resolved. Without this there was sometimes a warning. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@410100 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/area/inline/UnresolvedPageNumber.java b/src/java/org/apache/fop/area/inline/UnresolvedPageNumber.java index fc28bda49..fe5e25eef 100644 --- a/src/java/org/apache/fop/area/inline/UnresolvedPageNumber.java +++ b/src/java/org/apache/fop/area/inline/UnresolvedPageNumber.java @@ -89,10 +89,10 @@ public class UnresolvedPageNumber extends TextArea implements Resolvable { * @param pages the list of PageViewports associated with this ID */ public void resolveIDRef(String id, List pages) { - if (log.isDebugEnabled()) { - log.debug("Resolving pageNumber: " + id); - } - if (pageIDRef.equals(id) && pages != null) { + if (!resolved && pageIDRef.equals(id) && pages != null) { + if (log.isDebugEnabled()) { + log.debug("Resolving pageNumber: " + id); + } resolved = true; PageViewport page; if (pageType == FIRST) {