Commit 0f5edeae authored by konovalovsergey's avatar konovalovsergey

fix bug 35900

parent 2a1abd9d
...@@ -195,7 +195,9 @@ ...@@ -195,7 +195,9 @@
var c_oSerWorkbookPrTypes = var c_oSerWorkbookPrTypes =
{ {
Date1904: 0, Date1904: 0,
DateCompatibility: 1 DateCompatibility: 1,
HidePivotFieldList: 2,
ShowPivotChartFilter: 3
}; };
/** @enum */ /** @enum */
var c_oSerWorkbookViewTypes = var c_oSerWorkbookViewTypes =
...@@ -2287,6 +2289,18 @@ ...@@ -2287,6 +2289,18 @@
this.memory.WriteByte(c_oSerBorderPropTypes.DateCompatibility); this.memory.WriteByte(c_oSerBorderPropTypes.DateCompatibility);
this.memory.WriteByte(c_oSerPropLenType.Byte); this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteBool(oWorkbookPr.DateCompatibility); this.memory.WriteBool(oWorkbookPr.DateCompatibility);
}
else if (null != oWorkbookPr.HidePivotFieldList)
{
this.memory.WriteByte(c_oSerWorkbookPrTypes.HidePivotFieldList);
this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteBool(oWorkbookPr.HidePivotFieldList);
}
else if (null != oWorkbookPr.ShowPivotChartFilter)
{
this.memory.WriteByte(c_oSerWorkbookPrTypes.ShowPivotChartFilter);
this.memory.WriteByte(c_oSerPropLenType.Byte);
this.memory.WriteBool(oWorkbookPr.ShowPivotChartFilter);
} }
} }
}; };
...@@ -5715,7 +5729,11 @@ ...@@ -5715,7 +5729,11 @@
} }
else if ( c_oSerWorkbookPrTypes.DateCompatibility == type ) else if ( c_oSerWorkbookPrTypes.DateCompatibility == type )
WorkbookPr.DateCompatibility = this.stream.GetBool(); WorkbookPr.DateCompatibility = this.stream.GetBool();
else else if ( c_oSerWorkbookPrTypes.HidePivotFieldList == type ) {
WorkbookPr.HidePivotFieldList = this.stream.GetBool();
} else if ( c_oSerWorkbookPrTypes.ShowPivotChartFilter == type ) {
WorkbookPr.ShowPivotChartFilter = this.stream.GetBool();
} else
res = c_oSerConstants.ReadUnknown; res = c_oSerConstants.ReadUnknown;
return res; return res;
}; };
......
Markdown is supported
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