Skip to content

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

Open
@cwpearson

Description

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.

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions