git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194078 13f79535-47bb-0310-9956-ffa450edef68pull/32/head
@@ -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 |