enthought / enable

Enable: low-level drawing and interaction
Other
91 stars 45 forks source link

Basecore2d GraphicsContexts starts subpaths when it shouldn't #986

Closed corranwebster closed 2 years ago

corranwebster commented 2 years ago

This causes issues like the following in the benchmarks (SVG backend): image

The shape should look more like: image

The cause would seem to be that the get_subpath_points function doesn't correctly handle situations where multiple points are added at once in an array after the first point: https://github.com/enthought/enable/blob/7ba4c71d2af990c79ed3f33c386d0c99d6d9622c/kiva/basecore2d.py#L1240-L1256