Fix a crash in the draw tool. The resulting bline should approximate the drawn curve...