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

Ensure all clone methods correctly retain id #2013

Merged
merged 1 commit into from
Oct 22, 2017
Merged

Conversation

philippjfr
Copy link
Member

Certain clone methods on Annotations, BaseShape and UniformNdMapping were not passing the id along resulting in styles getting dropped when different operations were applied to these objects. One issue that's caused by this is #1904, but there may be others I missed.

@philippjfr philippjfr added type: bug Something isn't correct or isn't working tag: component: options labels Oct 22, 2017
@jlstevens
Copy link
Contributor

Well caught. We should keep close tabs on the clone methods that don't go up through super - Annotation, DynamicMap and BaseShape are the ones I remember. We should check to see if there are any more.

@philippjfr
Copy link
Member Author

DynamicMap doesn't matter since it does not have any options. The others are covered in this PR. Ready to merge unless you have other suggestions.

@jlstevens
Copy link
Contributor

Looks good and the tests are passing. Merging.

@jlstevens jlstevens merged commit 093caa2 into master Oct 22, 2017
@philippjfr philippjfr deleted the annotation_clone_id branch October 28, 2017 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: component: options type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants