Commit 373e1056 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 33504

parent e307044a
...@@ -4738,12 +4738,14 @@ CellArea.prototype = { ...@@ -4738,12 +4738,14 @@ CellArea.prototype = {
w.WriteLong(data.Type); w.WriteLong(data.Type);
switch (data.Type) { switch (data.Type) {
case AscCH.historyitem_Sparkline_Type: case AscCH.historyitem_Sparkline_Type:
case AscCH.historyitem_Sparkline_LineWeight:
case AscCH.historyitem_Sparkline_DisplayEmptyCellsAs: case AscCH.historyitem_Sparkline_DisplayEmptyCellsAs:
case AscCH.historyitem_Sparkline_MinAxisType: case AscCH.historyitem_Sparkline_MinAxisType:
case AscCH.historyitem_Sparkline_MaxAxisType: case AscCH.historyitem_Sparkline_MaxAxisType:
w.WriteLong(data.newPr); w.WriteLong(data.newPr);
break; break;
case AscCH.historyitem_Sparkline_LineWeight:
w.WriteDouble2(data.newPr);
break;
case AscCH.historyitem_Sparkline_Markers: case AscCH.historyitem_Sparkline_Markers:
case AscCH.historyitem_Sparkline_High: case AscCH.historyitem_Sparkline_High:
case AscCH.historyitem_Sparkline_Low: case AscCH.historyitem_Sparkline_Low:
...@@ -4760,7 +4762,7 @@ CellArea.prototype = { ...@@ -4760,7 +4762,7 @@ CellArea.prototype = {
case AscCH.historyitem_Sparkline_ManualMin: case AscCH.historyitem_Sparkline_ManualMin:
w.WriteBool(null !== data.newPr); w.WriteBool(null !== data.newPr);
if (null !== data.newPr) { if (null !== data.newPr) {
w.WriteLong(data.newPr); w.WriteDouble2(data.newPr);
} }
break; break;
case AscCH.historyitem_Sparkline_ColorSeries: case AscCH.historyitem_Sparkline_ColorSeries:
...@@ -4809,7 +4811,7 @@ CellArea.prototype = { ...@@ -4809,7 +4811,7 @@ CellArea.prototype = {
this.type = r.GetLong(); this.type = r.GetLong();
break; break;
case AscCH.historyitem_Sparkline_LineWeight: case AscCH.historyitem_Sparkline_LineWeight:
this.lineWeight = r.GetLong(); this.lineWeight = r.GetDoubleLE();
break; break;
case AscCH.historyitem_Sparkline_DisplayEmptyCellsAs: case AscCH.historyitem_Sparkline_DisplayEmptyCellsAs:
this.displayEmptyCellsAs = r.GetLong(); this.displayEmptyCellsAs = r.GetLong();
...@@ -4851,10 +4853,10 @@ CellArea.prototype = { ...@@ -4851,10 +4853,10 @@ CellArea.prototype = {
this.dateAxis = r.GetBool(); this.dateAxis = r.GetBool();
break; break;
case AscCH.historyitem_Sparkline_ManualMax: case AscCH.historyitem_Sparkline_ManualMax:
this.manualMax = r.GetBool() ? r.GetLong() : null; this.manualMax = r.GetBool() ? r.GetDoubleLE() : null;
break; break;
case AscCH.historyitem_Sparkline_ManualMin: case AscCH.historyitem_Sparkline_ManualMin:
this.manualMin = r.GetBool() ? r.GetLong() : null; this.manualMin = r.GetBool() ? r.GetDoubleLE() : null;
break; break;
case AscCH.historyitem_Sparkline_ColorSeries: case AscCH.historyitem_Sparkline_ColorSeries:
this.colorSeries = readColor(r); this.colorSeries = readColor(r);
......
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