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

Polygon multiplication bug in Node.AllPolygons() #32

Open
goitrodos opened this issue Jul 18, 2022 · 0 comments
Open

Polygon multiplication bug in Node.AllPolygons() #32

goitrodos opened this issue Jul 18, 2022 · 0 comments

Comments

@goitrodos
Copy link

Calling Node.AllPolygons will multiplicate the polygons drastically due to:

List<Polygon> list = polygons;

This breaks the initial data structure due to not copying the data to a new list. The correct code should be:

List<Polygon> list = new List<Polygon>(polygons);

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