ART crash when resetting the mask's Shape list

Issue #81 resolved
Hombre created an issue

Steps to reproduce :

  • create a Polygon shape, empty or non empty
  • delete any other shapes (the Polygon should be selected)
  • enter the Edit mode (not sure it is required)
  • hit the reset button
  • → crash

The problem is in LabMasksPanel::onAreaShapeResetPressed where the Polygon geometry is deleted, but there’s no Rectangle shape to switch to now, so the updateGeometry works on deleted objects.

If you tell me what is the desired behavior now, I can probably provide a patch. Unless you prefer to solve it yourself.

Comments (4)

  1. agriggio repo owner

    thanks – it was easier to fix (I hope 🙂 than to describe what to do, so I just did it. Can you please check that it works for you as well?

  2. Log in to comment