aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2023-11-21 14:15:54 +0000
committerSimon Steiner <ssteiner@apache.org>2023-11-21 14:15:54 +0000
commitfa9e78ed2ccd890c4eb21f319ea56f9e0545125b (patch)
treeb9732daeb9dc31865d375a9a968093e2a1b1ae2b /fop-core
parent699b56779e89d45ae8d8ea517bc7cee57e2f4231 (diff)
downloadxmlgraphics-fop-fa9e78ed2ccd890c4eb21f319ea56f9e0545125b.tar.gz
xmlgraphics-fop-fa9e78ed2ccd890c4eb21f319ea56f9e0545125b.zip
FOP-3161: Resize table only for multicolumn page
Diffstat (limited to 'fop-core')
-rw-r--r--fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java
index f1750b226..182f3e8f7 100644
--- a/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java
+++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java
@@ -318,7 +318,7 @@ public class TableLayoutManager extends SpacedBorderedPaddedBlockLayoutManager
}
private boolean supportResize(FONode node) {
- if (node instanceof AbstractGraphics || contentLM.bodyIter.rowIndex == 1) {
+ if (node instanceof AbstractGraphics || getPSLM().getPageProvider().getCurrentColumnCount() == 1) {
return false;
}
FONode.FONodeIterator iterator = node.getChildNodes();