Fix bug with line's generation log (again close #12)

If x of endPoint lager when x of startPoint coordinates in log output
was incorrect