dotnetcore / NPOI

A .NET library for reading and writing Microsoft Office binary and OOXML file formats.
Apache License 2.0
1.93k stars 413 forks source link

Styles.xml: fix default patternType when attribute is missing #137

Closed tincann closed 5 years ago

tincann commented 5 years ago

When reading styles.xml the parser sets patternStyle to none if the attribute it missing, however the default value is solid.

<patternFill>
    <rgb="FFFFC000"/>
</patternFill>

Above snippet should be equivalent to the snippet below.

<patternFill patternStyle="solid">
    <rgb="FFFFC000"/>
</patternFill>
yang-xiaodong commented 5 years ago

Looks good, thanks