Commit d36e4008 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправления для сохранения с помощью совместного редактирования.


git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56542 954022d7-b5bf-4e40-9824-e11837661b57
parent b99f7b10
......@@ -45,7 +45,7 @@ CHistory.prototype =
Clear : function()
{
this.Index = -1;
this.SavedIndex = -1;
this.SavedIndex = null;
this.Points.length = 0;
this.Internal_RecalcData_Clear();
},
......@@ -127,7 +127,7 @@ CHistory.prototype =
Create_NewPoint : function()
{
if ( this.Index < this.SavedIndex )
if ( this.Index < this.SavedIndex && null !== this.SavedIndex )
this.SavedIndex = this.Index;
this.Clear_Additional();
......@@ -363,7 +363,7 @@ CHistory.prototype =
Additional : {}
};
if ( this.SavedIndex >= this.Points.length - 2 )
if ( this.SavedIndex >= this.Points.length - 2 && null !== this.SavedIndex )
this.SavedIndex = this.Points.length - 3;
this.Points.splice( this.Points.length - 2, 2, NewPoint );
......
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