Fix some bugs in curve creation that cause problems for curves with more than a single segment.
Fix some bugs in curve creation that cause problems for curves with more than a single segment.

HazenBabcock/opensdraw