]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Minor optimization.
authorAdrian Cumiskey <acumiskey@apache.org>
Wed, 23 Jul 2008 09:26:40 +0000 (09:26 +0000)
committerAdrian Cumiskey <acumiskey@apache.org>
Wed, 23 Jul 2008 09:26:40 +0000 (09:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@679044 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java

index 022ba1d90d75b33b04cf425468e050cf8362c185..4aa73cc3751bf359a18a9e75f4342227e9814588 100644 (file)
@@ -196,8 +196,6 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager
             return getNextKnuthElementsAbsolute(context, alignment);
         }
         
-        boolean switchedProgressionDirection
-            = (getBlockContainerFO().getReferenceOrientation() % 180 != 0);
         autoHeight = false;
         //boolean rotated = (getBlockContainerFO().getReferenceOrientation() % 180 != 0);
         int maxbpd = context.getStackLimitBP().opt;
@@ -354,6 +352,8 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager
             if (autoHeight) {
                 //Update content BPD now that it is known
                 int newHeight = breaker.deferredAlg.totalWidth;
+                boolean switchedProgressionDirection
+                    = (getBlockContainerFO().getReferenceOrientation() % 180 != 0);
                 if (switchedProgressionDirection) {
                     setContentAreaIPD(newHeight);
                 } else {