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;
/* 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();