Browse Source

Fix checkstyle issues

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1067698 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-1_1rc1old
Andreas L. Delmelle 13 years ago
parent
commit
f7b0d89c8f

+ 2
- 1
src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java View File

@@ -88,7 +88,8 @@ public class FlowLayoutManager extends BlockStackingLayoutManager
currentChildLM = restartPosition.getLM();
if (currentChildLM == null) {
throw new IllegalStateException(
"Cannot find layout manager from where to re-start layout after IPD change");
"Cannot find layout manager from where to re-start "
+ "layout after IPD change");
}
if (restartLM != null && restartLM.getParent() == this) {
currentChildLM = restartLM;

+ 1
- 1
src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java View File

@@ -980,7 +980,7 @@ public class LineLayoutManager extends InlineStackingLayoutManager
/* comment out the next lines in order to test particular situations */
if (fobj.getOrphans() + fobj.getWidows() <= llPoss.getMinLineCount()) {
innerLines = llPoss.getMinLineCount() - (fobj.getOrphans() + fobj.getWidows());
optionalLines = llPoss.getMaxLineCount()- llPoss.getOptLineCount();
optionalLines = llPoss.getMaxLineCount() - llPoss.getOptLineCount();
eliminableLines = llPoss.getOptLineCount() - llPoss.getMinLineCount();
} else if (fobj.getOrphans() + fobj.getWidows() <= llPoss.getOptLineCount()) {
optionalLines = llPoss.getMaxLineCount() - llPoss.getOptLineCount();

Loading…
Cancel
Save