Browse Source

fixed: problems if calculated leader-length < 0


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194078 13f79535-47bb-0310-9956-ffa450edef68
pull/32/head
fotis 23 years ago
parent
commit
6d104eb397
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/org/apache/fop/layout/LineArea.java

+ 6
- 0
src/org/apache/fop/layout/LineArea.java View File

@@ -504,6 +504,12 @@ public class LineArea extends Area {
} else if ((leaderLengthOptimum > leaderLengthMaximum) && (leaderLengthOptimum < remainingWidth)) {
leaderLength = leaderLengthOptimum;
}

//stop if leader-length is too small
if (leaderLength <= 0 ) {
return;
}

switch (leaderPattern) {
case LeaderPattern.SPACE:
//whitespace setting must be false for this

Loading…
Cancel
Save