diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-07-23 09:26:40 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-07-23 09:26:40 +0000 |
commit | f26c0c2d84f780e94c681b4617cecc7080c4bb11 (patch) | |
tree | 205ddd762073d2d4fc2ff82a925ddd635ddfec9d /src/java/org/apache | |
parent | 6d2cda3589e173b46319ca1a8cfdd5d52a0c775b (diff) | |
download | xmlgraphics-fop-f26c0c2d84f780e94c681b4617cecc7080c4bb11.tar.gz xmlgraphics-fop-f26c0c2d84f780e94c681b4617cecc7080c4bb11.zip |
Minor optimization.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@679044 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java | 4 |
1 files 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 { |