if (paintY > clientArea.y && paintY <= clientArea.y + clientArea.height) {
if (paintY > clientArea.y) {
	void print() {		StyledTextContent content = renderer.getContent();		Color background = gc.getBackground();		Color foreground = gc.getForeground();		int lineHeight = renderer.getLineHeight();		int paintY = clientArea.y;		int page = startPage;				for (int i = startLine; i <= endLine && page <= endPage; i++, paintY += lineHeight) {			String line = content.getLine(i);						if (paintY == clientArea.y) {				startPage(page);			}			renderer.drawLine(				line, i, paintY, gc, background, foreground, true);			if (paintY + lineHeight * 2 > clientArea.y + clientArea.height) {				endPage(page);				paintY = clientArea.y - lineHeight;				page++;			}		}		if (paintY > clientArea.y && paintY <= clientArea.y + clientArea.height) {			endPage(page);		}	}