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

Bug with Static Tree Index Initialization #7

Open
socquique opened this issue Oct 24, 2017 · 1 comment
Open

Bug with Static Tree Index Initialization #7

socquique opened this issue Oct 24, 2017 · 1 comment

Comments

@socquique
Copy link

Hi, need some help this this issue. I have something like this:
kjtreeInstance = KJTree(indices: ["1.1", "1.2.1", "1.2.2", "1.2.3", "1.3.1", "1.3.2", "1.3.3"] )

but the result is similar to:
captura de pantalla 2017-10-24 a las 16 29 15

@socquique
Copy link
Author

socquique commented Oct 24, 2017

Found the bug! There is a bug when init(indices: [String])
...
else{
// create new child
var child = Child()
child.givenIndex = internalIndex //index
parent.arrayChilds.append(child)
components.removeFirst()
self.justAddChildsIn(inChild: &child, components: &components)
}
...

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

No branches or pull requests

1 participant