]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Take a shortcut when page number is already resolved. Without this there was sometime...
authorJeremias Maerki <jeremias@apache.org>
Mon, 29 May 2006 15:05:22 +0000 (15:05 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 29 May 2006 15:05:22 +0000 (15:05 +0000)
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

index fc28bda49347c38f2815a5a0b167abffa3f8a358..fe5e25eef1907e2a4c9af5b1ea13d931daeecb97 100644 (file)
@@ -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) {