aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-11-13 16:58:30 +0000
committerJeremias Maerki <jeremias@apache.org>2005-11-13 16:58:30 +0000
commit999f7ccfefeaa9a1dcc9015b5550c53709fde1ca (patch)
treea8e4278679b99c44096beead541e208abbb2b8cc
parentd5b198f09451d04a57226914ae7f68b66ea6d6fd (diff)
downloadxmlgraphics-fop-999f7ccfefeaa9a1dcc9015b5550c53709fde1ca.tar.gz
xmlgraphics-fop-999f7ccfefeaa9a1dcc9015b5550c53709fde1ca.zip
Disabled warning which are based on the containing reference area instead of the containing box.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@333059 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
index a12084780..6107aadd7 100644
--- a/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
@@ -395,20 +395,28 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager
if (abProps.bottom.getEnum() != EN_AUTO) {
allocBPD -= abProps.bottom.getValue(this);
if (allocBPD < 0) {
+ //TODO Fix absolute b-c layout, layout may need to be defferred until
+ //after page breaking when the size of the containing box is known.
+ /* Warning disabled due to a interpretation mistake.
+ * See: http://marc.theaimsgroup.com/?l=fop-dev&m=113189981926163&w=2
log.error("The current combination of top and bottom properties results"
+ " in a negative extent for the block-container. 'bottom' may be"
+ " at most " + (allocBPD + abProps.bottom.getValue(this)) + " mpt,"
+ " but was actually " + abProps.bottom.getValue(this) + " mpt."
+ " The nominal available height is " + availHeight + " mpt.");
+ */
allocBPD = 0;
}
} else {
if (allocBPD < 0) {
+ /* Warning disabled due to a interpretation mistake.
+ * See: http://marc.theaimsgroup.com/?l=fop-dev&m=113189981926163&w=2
log.error("The current combination of top and bottom properties results"
+ " in a negative extent for the block-container. 'top' may be"
+ " at most " + availHeight + " mpt,"
+ " but was actually " + offset.y + " mpt."
+ " The nominal available height is " + availHeight + " mpt.");
+ */
allocBPD = 0;
}
}
@@ -433,20 +441,26 @@ public class BlockContainerLayoutManager extends BlockStackingLayoutManager
if (abProps.right.getEnum() != EN_AUTO) {
allocIPD -= abProps.right.getValue(this);
if (allocIPD < 0) {
+ /* Warning disabled due to a interpretation mistake.
+ * See: http://marc.theaimsgroup.com/?l=fop-dev&m=113189981926163&w=2
log.error("The current combination of left and right properties results"
+ " in a negative extent for the block-container. 'right' may be"
+ " at most " + (allocIPD + abProps.right.getValue(this)) + " mpt,"
+ " but was actually " + abProps.right.getValue(this) + " mpt."
+ " The nominal available width is " + availWidth + " mpt.");
+ */
allocIPD = 0;
}
} else {
if (allocIPD < 0) {
+ /* Warning disabled due to a interpretation mistake.
+ * See: http://marc.theaimsgroup.com/?l=fop-dev&m=113189981926163&w=2
log.error("The current combination of left and right properties results"
+ " in a negative extent for the block-container. 'left' may be"
+ " at most " + allocIPD + " mpt,"
+ " but was actually " + abProps.left.getValue(this) + " mpt."
+ " The nominal available width is " + availWidth + " mpt.");
+ */
allocIPD = 0;
}
}