Commit 7243871c authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #33650

parent 6048407a
...@@ -2946,6 +2946,7 @@ ...@@ -2946,6 +2946,7 @@
// Long : позиции элементов // Long : позиции элементов
// Variable : Item // Variable : Item
// } // }
// Long : Поле Color
var bArray = this.UseArray; var bArray = this.UseArray;
var nCount = this.Items.length; var nCount = this.Items.length;
...@@ -2979,6 +2980,15 @@ ...@@ -2979,6 +2980,15 @@
Writer.Seek(nStartPos); Writer.Seek(nStartPos);
Writer.WriteLong(nRealCount); Writer.WriteLong(nRealCount);
Writer.Seek(nEndPos); Writer.Seek(nEndPos);
var nColor = 0;
if (undefined !== this.Color)
{
nColor |= 1;
if (true === this.Color)
nColor |= 2;
}
Writer.WriteLong(nColor);
}; };
CChangesBaseContentChange.prototype.ReadFromBinary = function(Reader) CChangesBaseContentChange.prototype.ReadFromBinary = function(Reader)
{ {
...@@ -2988,6 +2998,7 @@ ...@@ -2988,6 +2998,7 @@
// Long : позиции элементов // Long : позиции элементов
// Variable : Item // Variable : Item
// } // }
// Long : поле Color
this.UseArray = true; this.UseArray = true;
this.Items = []; this.Items = [];
...@@ -2999,6 +3010,10 @@ ...@@ -2999,6 +3010,10 @@
this.PosArray[nIndex] = Reader.GetLong(); this.PosArray[nIndex] = Reader.GetLong();
this.Items[nIndex] = this.private_ReadItem(Reader); this.Items[nIndex] = this.private_ReadItem(Reader);
} }
var nColor = Reader.GetLong();
if (nColor & 1)
this.Color = (nColor & 2) ? true : false;
}; };
CChangesBaseContentChange.prototype.private_WriteItem = function(Writer, Item) CChangesBaseContentChange.prototype.private_WriteItem = function(Writer, Item)
{ {
......
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