Skip to content

Commit aad44bc

Browse files
Merged from simplify-element-writing.
2 parents 259125f + 796f6eb commit aad44bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/SvgElement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ protected virtual void WriteAttributes(XmlTextWriter writer)
562562
forceWrite = false;
563563
writeStyle = (attr.Attribute.Name == "fill");
564564

565-
if ((attr.Attribute.Name == "fill") && (Parent != null))
565+
if (writeStyle && (Parent != null))
566566
{
567567
if(propertyValue == SvgColourServer.NotSet) continue;
568568

0 commit comments

Comments
 (0)