diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-05-29 15:05:22 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-05-29 15:05:22 +0000 |
commit | 4d9ed0b260f336352b39db3fddbada4086f2abcc (patch) | |
tree | 91b9f5be5916c30aa9f4336b91cf10a0549fca02 /src/java/org/apache/fop/area/inline | |
parent | 5318bd2de1d940db70d3d8d578b643a7fb505721 (diff) | |
download | xmlgraphics-fop-4d9ed0b260f336352b39db3fddbada4086f2abcc.tar.gz xmlgraphics-fop-4d9ed0b260f336352b39db3fddbada4086f2abcc.zip |
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
Diffstat (limited to 'src/java/org/apache/fop/area/inline')
-rw-r--r-- | src/java/org/apache/fop/area/inline/UnresolvedPageNumber.java | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |