refs #25 fix drawing of lines.
When drawing lines there was an error with equal x and y.