Commit 8fc0a41b authored by HeinrichAD's avatar HeinrichAD
Browse files

SvgAttributeCollection optimize.

parent d88540e4
...@@ -73,9 +73,10 @@ namespace Svg ...@@ -73,9 +73,10 @@ namespace Svg
if (this._owner.Parent != null) if (this._owner.Parent != null)
{ {
if (this._owner.Parent.Attributes[attributeName] != null) var parentAttribute = this._owner.Parent.Attributes[attributeName];
if (parentAttribute != null)
{ {
return (TAttributeType)this._owner.Parent.Attributes[attributeName]; return (TAttributeType)parentAttribute;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment