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

Correct property value check in remove_gds_property() #276

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

jatoben
Copy link
Contributor

@jatoben jatoben commented Nov 7, 2024

When there's more than one property set on an object, the remove_gds_property() function must traverse the Property linked list to find the item with the desired property number. However, the traversal checks the current property's value rather than that of property->next, causing the failure described in #275.

This PR updates the value check and adds a unit test to cover this case.

Closes #275.

Copy link
Owner

@heitzmann heitzmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@heitzmann heitzmann merged commit 1fd3f4a into heitzmann:main Nov 7, 2024
6 checks passed
@jatoben jatoben deleted the delprop branch November 7, 2024 19:58
@fnJeff
Copy link

fnJeff commented Nov 8, 2024

I'll second that, thanks for the lightening quick fix!

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.

Reference.delete_gds_property() does not seem to actually remove the legacy GDSII style property
3 participants