From f26c0c2d84f780e94c681b4617cecc7080c4bb11 Mon Sep 17 00:00:00 2001 From: Adrian Cumiskey Date: Wed, 23 Jul 2008 09:26:40 +0000 Subject: [PATCH] Minor optimization. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@679044 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/layoutmgr/BlockContainerLayoutManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java index 022ba1d90..4aa73cc37 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java @@ -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 { -- 2.39.5