Commit dd61d3ee authored by konovalovsergey's avatar konovalovsergey

freeze pane m_oState revert to string

parent 3a44f872
......@@ -268,9 +268,9 @@ var c_oAscCanChangeColWidth = {
};
var c_oAscPaneState = {
Frozen: 0,
FrozenSplit: 1,
Split: 2
Frozen: "frozen",
FrozenSplit: "frozenSplit",
Split: "split"
};
var c_oAscFindLookIn = {
......
......@@ -630,11 +630,10 @@
/** @enum */
var c_oSer_Pane = {
ActivePane : 0,
//State : 1,
State : 1,
TopLeftCell : 2,
XSplit : 3,
YSplit : 4,
State : 5
YSplit : 4
};
/** @enum */
var c_oSer_Selection = {
......@@ -2653,7 +2652,7 @@
var oThis = this;
//this.bs.WriteItem(c_oSer_Pane.ActivePane, function(){oThis.memory.WriteByte();});
// Всегда пишем Frozen
this.bs.WriteItem(c_oSer_Pane.State, function(){oThis.memory.WriteByte(AscCommonExcel.c_oAscPaneState.Frozen);});
this.bs.WriteItem(c_oSer_Pane.State, function(){oThis.memory.WriteString3(AscCommonExcel.c_oAscPaneState.Frozen);});
this.bs.WriteItem(c_oSer_Pane.TopLeftCell, function(){oThis.memory.WriteString3(oPane.topLeftFrozenCell.getID());});
var col = oPane.topLeftFrozenCell.getCol0();
......@@ -6589,7 +6588,7 @@
if (c_oSer_Pane.ActivePane === type)
this.stream.GetUChar();
else if (c_oSer_Pane.State === type)
oPane.state = this.stream.GetUChar();
oPane.state = this.stream.GetString2LE(length);
else if (c_oSer_Pane.TopLeftCell === type)
oPane.topLeftCell = this.stream.GetString2LE(length);
else if (c_oSer_Pane.XSplit === type)
......
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