if (equation==null) { System.out.print(" #2187 "); return false; } // BUG?
equationBox = equation.toBox(colourScheme);
labelBox = equation.getLabelBox(colourScheme);
labelBox.setProperty(Box.RIGHT_ALIGN);
equationBox.setupInnerRectangle(fontSize);
Offset equationRectangle = calcEquationRectangle(panelRectangle);
if (equationRectangle==null) { System.out.print(" #9862 "); return false; } // BUG? // <-- (1)
labelBox.setup(fontSize, equationRectangle);
if (equationBox.getInnerRectangle()==null) { System.out.print(" #0391 "); return false; } // BUG? // <-- (2)
Offset windowWithoutLabel = calcWindowWithoutLabel(equationRectangle);
if (windowWithoutLabel==null) { System.out.print(" #9104 "); return false; } // BUG?
equationBox.setupOuterRectangle(windowWithoutLabel);
equationBox.calcRootOffset();
}
return true;