Skip to content

Properly set parent for newly created mtd#815

Merged
dpvc merged 1 commit intodevelopfrom
fix-parent
May 19, 2022
Merged

Properly set parent for newly created mtd#815
dpvc merged 1 commit intodevelopfrom
fix-parent

Conversation

@dpvc
Copy link
Copy Markdown
Member

@dpvc dpvc commented May 18, 2022

This PR fixes a problem in EmpheqUtils where an mtd element is created and inserted into an mtr child list without properly setting the parent node. There was a line that was supposed to do that, but apparently wan't working. This PR replaces that line with one that sets the parent explicitly (not sure why I didn't do that originally).

It also fixes an issue where nodes could be added to the ParseOptions' nodeList for a list with an empty name (when the in-lists string is empty, the split(/,/) produces an array with an empty entry).

This resolves the issue Peter was having with his subnumcases environment.

@dpvc dpvc requested a review from zorkow May 18, 2022 14:46
@dpvc dpvc added this to the 3.2.1 milestone May 18, 2022
Copy link
Copy Markdown
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

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

lgtm.

@pkra
Copy link
Copy Markdown
Contributor

pkra commented May 19, 2022

Thanks again!

@dpvc dpvc merged commit d74f383 into develop May 19, 2022
@dpvc dpvc deleted the fix-parent branch May 19, 2022 14:05
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.

3 participants