The `trim_end_points` in the draw tool was only supposed to be able to remove end points of the stroke. Make sure to clamp the value so that at least one point remains in the curve.
The `trim_end_points` in the draw tool was only supposed to be able to remove end points of the stroke. Make sure to clamp the value so that at least one point remains in the curve.