(patch) line: Fix length value when set at object creation

When the length property is set in the options object passed
in when the object is created, the positions must be
calculated correctly.