MFEK / glif

A stand-alone glyph viewer and editor (UFO .glif). (ꞵ quality)
Apache License 2.0
190 stars 14 forks source link

When a point is selected attempting to draw a new contour results in the Move_Handle behavior instead. #337

Closed MatthewBlanchard closed 2 years ago

ctrlcctrlv commented 2 years ago

Confirmed in master.

ctrlcctrlv commented 2 years ago

I found the problem, it's not in glifparser and seems quite old. It's because we catch inside Pen::mouse_pressed but the point_index check for beginning/end falls through, so we just push MoveHandle onto the stack which moves the selected point. We just need to force a deselection.