}
}
if (editStatus.isPenActive()) {
x = clickX + adjustForPen(x - clickX, 6);
y = clickY + adjustForPen(y - clickY, 7);
picturePanel.drawTemporaryLine(clickX, clickY, x, y, lineColour);
}
// Move the mouse to the tool restricted x/y position (if applicable).
if ((robot != null) && ((x != editStatus.getMouseX()) || (y != editStatus.getMouseY()))) {
// Make sure the EditStatus has the tool adjusted mouse point.