mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-13 13:43:50 +00:00
shape.merge worked on the slide's top-level list. Given shapes inside a group, it merged them from their boxes in the group's own space, left them in the group and added the result to the slide's top level, so in a moved or resized group the merged shape was drawn away from the shapes it came from, which stayed drawn as well. A call whose shapes include one inside a group is now refused with the shape's name and a request to ungroup it first, and the slide is left as it was. Merge Shapes is unavailable while a shape inside a group is selected; a call that names top-level shapes in `ids` still runs whatever is selected, as it does when nothing is selected. Test: a_shape_in_a_group_is_refused.