Stylist title bug in case of Geometry collections #105

Open
wants to merge 2 commits into
from

Projects

None yet

2 participants

@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
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