Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #296, don't remove elements with referenced children #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joneuhauser
Copy link

@joneuhauser joneuhauser commented Sep 15, 2022

Before adding an element to the list of to-be-removed-elements, we need to check if a child of this element is in the list of referenced IDs.

Closes #296

Added a unit test; the existing unit tests are working. Also flake-8 doesn't complain about the newly-added code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breaks file by removing clip even when child is referenced by a clone (<use>)
1 participant