Commit ef228e97 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53059 954022d7-b5bf-4e40-9824-e11837661b57
parent 5217ca1a
...@@ -3370,13 +3370,13 @@ function ClrMap() ...@@ -3370,13 +3370,13 @@ function ClrMap()
{ {
this.color_map = new Array(); this.color_map = new Array();
for (var i = g_clr_MIN; i <= g_clr_MAX; i++) for (var i = 0; i < 17; i++)
this.color_map[i] = null; this.color_map[i] = null;
this.createDuplicate = function() this.createDuplicate = function()
{ {
var _copy = new ClrMap(); var _copy = new ClrMap();
for(var _color_index = g_clr_MIN; _color_index <= this.color_map.length; ++_color_index) for(var _color_index = 0; _color_index < 17; ++_color_index)
{ {
_copy.color_map[_color_index] = this.color_map[_color_index]; _copy.color_map[_color_index] = this.color_map[_color_index];
} }
...@@ -3385,7 +3385,7 @@ function ClrMap() ...@@ -3385,7 +3385,7 @@ function ClrMap()
this.Write_ToBinary2 = function(w) this.Write_ToBinary2 = function(w)
{ {
for(var i = g_clr_MIN; i <= g_clr_MAX; i++) for(var i = 0; i < 17; i++)
{ {
w.WriteBool(isRealNumber(this.color_map[i])); w.WriteBool(isRealNumber(this.color_map[i]));
if(isRealNumber(this.color_map[i])) if(isRealNumber(this.color_map[i]))
...@@ -3397,7 +3397,7 @@ function ClrMap() ...@@ -3397,7 +3397,7 @@ function ClrMap()
this.Read_FromBinary2 = function(r) this.Read_FromBinary2 = function(r)
{ {
for(var i = g_clr_MIN; i <= g_clr_MAX; i++) for(var i = 0; i < 17; i++)
{ {
if(r.GetBool()) if(r.GetBool())
{ {
......
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