mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 13:02:50 -05:00
Document.pathItems.removeAll() deleted every path of the document even when one was the clipping path of a group or layer that keeps other objects, so the next object became the clipping path. The scoped collections already refuse this. The document's collection now runs the same check before anything is deleted, and also refuses when it would empty a compound path or group that clips other objects. edit.clear removes an emptied compound path and keeps an emptied group, and the check follows it. The fault came with #9041, which added Document.pathItems.