if (_firstLineWidth == 0 && length > 0) {
if (last == 0) {
    private void calcMaxWidthFromLineLength(LayoutContext c, boolean trim) {        int last = 0;        int current = 0;                while ( (current = _text.indexOf(WhitespaceStripper2.EOL, last)) != -1) {            String target = _text.substring(last, current);            if (trim) {                target = target.trim();            }            int length = getTextWidth(c, target);            if (length > _maxWidth) {                _maxWidth = length;            }            if (_firstLineWidth == 0 && length > 0) {                _firstLineWidth = length;            }            last = current + 1;        }                String target = _text.substring(last);        if (trim) {            target = target.trim();        }        int length = getTextWidth(c, target);        if (length > _maxWidth) {            _maxWidth = length;        }        if (last == 0) {            _firstLineWidth = length;        }            }