Skip to content

Commit

Permalink
Merge pull request #786 from KnyazSh/FixPivotTable
Browse files Browse the repository at this point in the history
Fix minValue and maxValue in SharedItems in CT_PivotCacheDefinition
  • Loading branch information
tonyqus authored Mar 24, 2022
2 parents 958ba17 + 835091d commit 43a35f6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions OpenXmlFormats/Spreadsheet/PivotTable/CT_PivotCacheDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1848,8 +1848,17 @@ internal void Write(StreamWriter sw, string nodeName)
XmlHelper.WriteAttribute(sw, "containsMixedTypes", this.containsMixedTypes, false);
XmlHelper.WriteAttribute(sw, "containsNumber", this.containsNumber, false);
XmlHelper.WriteAttribute(sw, "containsInteger", this.containsInteger, false);
XmlHelper.WriteAttribute(sw, "minValue", this.minValue);
XmlHelper.WriteAttribute(sw, "maxValue", this.maxValue);
if (this.containsNumber)
{
XmlHelper.WriteAttribute(sw, "minValue", this.minValue, true);
XmlHelper.WriteAttribute(sw, "maxValue", this.maxValue, true);
}
else
{
XmlHelper.WriteAttribute(sw, "minValue", this.minValue);
XmlHelper.WriteAttribute(sw, "maxValue", this.maxValue);
}

XmlHelper.WriteAttribute(sw, "minDate", this.minDate);
XmlHelper.WriteAttribute(sw, "maxDate", this.maxDate);
XmlHelper.WriteAttribute(sw, "count", this.count);
Expand Down

0 comments on commit 43a35f6

Please sign in to comment.