aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/area/inline
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-05-29 15:05:22 +0000
committerJeremias Maerki <jeremias@apache.org>2006-05-29 15:05:22 +0000
commit4d9ed0b260f336352b39db3fddbada4086f2abcc (patch)
tree91b9f5be5916c30aa9f4336b91cf10a0549fca02 /src/java/org/apache/fop/area/inline
parent5318bd2de1d940db70d3d8d578b643a7fb505721 (diff)
downloadxmlgraphics-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.java8
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) {