aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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) {