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

incorrectly handling a non-zero offset in the child #3

Open
cwpearson opened this issue Dec 30, 2020 · 0 comments
Open

incorrectly handling a non-zero offset in the child #3

cwpearson opened this issue Dec 30, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cwpearson
Copy link
Owner

if (1 == cData.count) {
changed = true;
// erase child and replace with gchild
// delete the child (only 1 child) and replace with granchildren
std::vector<Type> gchildren = child.children();
type.children() = gchildren;
}

If the child has a non-zero offset, it needs to be added into the parent before its removed.

@cwpearson cwpearson added the bug Something isn't working label Dec 30, 2020
@cwpearson cwpearson self-assigned this Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant