Browse Source

Update XmlHelper.cs

fix #604
pull/643/head
Tony Qu 4 years ago
parent
commit
7fac63f9dd
  1. 2
      openxml4Net/Util/XmlHelper.cs

2
openxml4Net/Util/XmlHelper.cs

@ -359,7 +359,7 @@ namespace NPOI.OpenXml4Net.Util
public static void WriteAttribute(StreamWriter sw, string attributeName, uint value, uint defaultValue, bool writeIfBlank = false)
{
if(value != defaultValue)
WriteAttribute(sw, attributeName, (int)value, writeIfBlank);
WriteAttribute(sw, attributeName, (int)value, true);
else if(writeIfBlank)
WriteAttribute(sw, attributeName, (int)value, writeIfBlank);
}

Loading…
Cancel
Save