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

Stylist title bug in case of Geometry collections #105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elpaso
Copy link

@elpaso elpaso commented Jan 6, 2012

There was a bug in Stylist title function when dealing with GEOMETRYCOLLECTION: the title function removed all children, resulting in all child geometries being removed in case of a collection.

This patch makes a check before removing children to create titles and also adds titles to children in case the geometry is a collection.

@shawnbot
Copy link
Contributor

shawnbot commented Jan 6, 2012

This looks good to me. @mbostock?

(Thanks, Alessandro!)

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.

2 participants