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

Fix DeepCopy result miss the _styles issue #1053

Merged
merged 2 commits into from
May 10, 2023

Conversation

mzh3511
Copy link
Contributor

@mzh3511 mzh3511 commented May 10, 2023

Some svg elements have styles that may include clip-path, the DeepCopy method should handle the _styles

Some svg element have styles which may includes `clip-path`, the `DeepCopy` method should handle the `_styles`
Copy link
Member

@mrbean-bremen mrbean-bremen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Can you please an entry into the release notes?

mzh3511 added a commit to mzh3511/SVG that referenced this pull request May 10, 2023
@mrbean-bremen mrbean-bremen merged commit 42faf6f into svg-net:master May 10, 2023
github-actions bot pushed a commit that referenced this pull request May 10, 2023
…UTING.md Generators Nuget README.md Samples Source Tests doc docfx.json index.md license.txt DeepCopy missed coping _styles BuildProcessTemplates CONTRIBUTING.md Generators Nuget README.md Samples Source Tests doc docfx.json index.md license.txt needed for svg elements with styles which include clip-path
@@ -1044,6 +1044,10 @@ public virtual SvgElement DeepCopy<T>() where T : SvgElement, new()
foreach (var node in Nodes)
newObj.Nodes.Add(node.DeepCopy());

foreach (var style in _styles)
foreach (var pair in style.Value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add indent.

H1Gdev added a commit to H1Gdev/SVG that referenced this pull request May 24, 2023
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.

3 participants