Commit b927cc60 authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bugs with changes of section.

parent 59c3c859
...@@ -1507,14 +1507,14 @@ CChangesParagraphSectPr.prototype.ReadFromBinary = function(Reader) ...@@ -1507,14 +1507,14 @@ CChangesParagraphSectPr.prototype.ReadFromBinary = function(Reader)
var nFlags = Reader.GetLong(); var nFlags = Reader.GetLong();
if (nFlags & 1) if (nFlags & 1)
this.New = AscCommon.g_oTableId.Get_ById(Reader.GetString2());
else
this.New = undefined; this.New = undefined;
else
this.New = AscCommon.g_oTableId.Get_ById(Reader.GetString2());
if (nFlags & 2) if (nFlags & 2)
this.Old = AscCommon.g_oTableId.Get_ById(Reader.GetString2());
else
this.Old = undefined; this.Old = undefined;
else
this.Old = AscCommon.g_oTableId.Get_ById(Reader.GetString2());
}; };
CChangesParagraphSectPr.prototype.CreateReverseChange = function() CChangesParagraphSectPr.prototype.CreateReverseChange = function()
{ {
......
...@@ -551,13 +551,13 @@ CChangesSectionPageNumTypeStart.prototype.private_SetValue = function(Value) ...@@ -551,13 +551,13 @@ CChangesSectionPageNumTypeStart.prototype.private_SetValue = function(Value)
}; };
/** /**
* @constructor * @constructor
* @extends {AscDFH.CChangesBaseLongValue} * @extends {AscDFH.CChangesBaseBoolValue}
*/ */
function CChangesSectionColumnsEqualWidth(Class, Old, New) function CChangesSectionColumnsEqualWidth(Class, Old, New)
{ {
CChangesSectionColumnsEqualWidth.superclass.constructor.call(this, Class, Old, New); CChangesSectionColumnsEqualWidth.superclass.constructor.call(this, Class, Old, New);
} }
AscCommon.extendClass(CChangesSectionColumnsEqualWidth, AscDFH.CChangesBaseLongValue); AscCommon.extendClass(CChangesSectionColumnsEqualWidth, AscDFH.CChangesBaseBoolValue);
CChangesSectionColumnsEqualWidth.prototype.Type = AscDFH.historyitem_Section_Columns_EqualWidth; CChangesSectionColumnsEqualWidth.prototype.Type = AscDFH.historyitem_Section_Columns_EqualWidth;
CChangesSectionColumnsEqualWidth.prototype.private_SetValue = function(Value) CChangesSectionColumnsEqualWidth.prototype.private_SetValue = function(Value)
{ {
......
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