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

Proper SvgTextBase.Text property setter behaviour #262

Merged
merged 1 commit into from
Nov 19, 2016

Conversation

sovietmagic
Copy link
Contributor

SvgTextBase.Text property setter resets Node (and Children) collection to have single content node with provided text.
Text elements must have at least one node to be serialized. Serializer is ignoring Content property of text elements, so Text property resets any previous text (by removing content Nodes) and creates a new node containing provided text.

fixes #259
fixes #254
fixes #151

@tebjan
Copy link
Contributor

tebjan commented Nov 19, 2016

that's quite some magic going on. thanks!

@tebjan tebjan merged commit eae9139 into svg-net:master Nov 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants