From 302ac17f7e716a080ae3861e35eb262cc581c4f6 Mon Sep 17 00:00:00 2001 From: Sergey Luzyanin Date: Fri, 2 Sep 2022 14:59:00 +0300 Subject: [PATCH] fix writing chart date1904, roundedCorners, showDLblsOverMax --- common/SerializeChart.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/SerializeChart.js b/common/SerializeChart.js index a727b13f61..1c8175ee87 100644 --- a/common/SerializeChart.js +++ b/common/SerializeChart.js @@ -1082,7 +1082,7 @@ BinaryChartWriter.prototype.WriteCT_extLst = function (oVal) { }; BinaryChartWriter.prototype.WriteCT_ChartSpace = function (oVal) { var oThis = this; - if (false != oVal.date1904) { + if (null != oVal.date1904) { this.bs.WriteItem(c_oserct_chartspaceDATE1904, function () { oThis.WriteCT_Boolean(oVal.date1904); }); @@ -1092,7 +1092,7 @@ BinaryChartWriter.prototype.WriteCT_ChartSpace = function (oVal) { oThis.WriteCT_TextLanguageID(oVal.lang); }); } - if (false != oVal.roundedCorners) { + if (null != oVal.roundedCorners) { this.bs.WriteItem(c_oserct_chartspaceROUNDEDCORNERS, function () { oThis.WriteCT_Boolean(oVal.roundedCorners); }); @@ -5395,7 +5395,7 @@ BinaryChartWriter.prototype.WriteCT_Chart = function (oVal) { oThis.WriteCT_DispBlanksAs(oVal.dispBlanksAs); }); } - if (false != oVal.showDLblsOverMax) { + if (null != oVal.showDLblsOverMax) { this.bs.WriteItem(c_oserct_chartSHOWDLBLSOVERMAX, function () { oThis.WriteCT_Boolean(oVal.showDLblsOverMax); });