From 4d9ed0b260f336352b39db3fddbada4086f2abcc Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 29 May 2006 15:05:22 +0000 Subject: 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 --- src/java/org/apache/fop/area/inline/UnresolvedPageNumber.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/java/org/apache/fop/area/inline') 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) { -- cgit v1.2.3