API change in lastLineValueToPoint adapated.