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

Bug 30335 - [TextArt][CoEdit] JS ошибка "createDuplicate" после изменения 2-ым...

Bug 30335 - [TextArt][CoEdit] JS ошибка "createDuplicate" после изменения 2-ым юзером текста с узорной заливкой

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64679 954022d7-b5bf-4e40-9824-e11837661b57
parent cb9f5d51
...@@ -2179,7 +2179,10 @@ CSolidFill.prototype = ...@@ -2179,7 +2179,10 @@ CSolidFill.prototype =
createDuplicate : function() createDuplicate : function()
{ {
var duplicate = new CSolidFill(); var duplicate = new CSolidFill();
duplicate.color = this.color.createDuplicate(); if(this.color)
{
duplicate.color = this.color.createDuplicate();
}
return duplicate; return duplicate;
}, },
...@@ -2267,7 +2270,10 @@ CGs.prototype = ...@@ -2267,7 +2270,10 @@ CGs.prototype =
{ {
var duplicate = new CGs(); var duplicate = new CGs();
duplicate.pos = this.pos; duplicate.pos = this.pos;
duplicate.color = this.color.createDuplicate(); if(this.color)
{
duplicate.color = this.color.createDuplicate();
}
return duplicate; return duplicate;
}, },
...@@ -2781,8 +2787,14 @@ CPattFill.prototype = ...@@ -2781,8 +2787,14 @@ CPattFill.prototype =
{ {
var duplicate = new CPattFill(); var duplicate = new CPattFill();
duplicate.ftype = this.ftype; duplicate.ftype = this.ftype;
duplicate.fgClr = this.fgClr.createDuplicate(); if(this.fgClr)
duplicate.bgClr = this.bgClr.createDuplicate(); {
duplicate.fgClr = this.fgClr.createDuplicate();
}
if(this.bgClr)
{
duplicate.bgClr = this.bgClr.createDuplicate();
}
return duplicate; return duplicate;
}, },
compare : function(fill) compare : function(fill)
......
...@@ -2961,10 +2961,18 @@ function CorrectUniFill(asc_fill, unifill, editorId) ...@@ -2961,10 +2961,18 @@ function CorrectUniFill(asc_fill, unifill, editorId)
{ {
ret.fill.fgClr = CorrectUniColor(_fill.fgClr, ret.fill.fgClr, editorId); ret.fill.fgClr = CorrectUniColor(_fill.fgClr, ret.fill.fgClr, editorId);
} }
if(!ret.fill.fgClr)
{
ret.fill.fgClr = CreateUniColorRGB(0, 0, 0);
}
if (undefined != _fill.bgClr) if (undefined != _fill.bgClr)
{ {
ret.fill.bgClr = CorrectUniColor(_fill.bgClr, ret.fill.bgClr, editorId); ret.fill.bgClr = CorrectUniColor(_fill.bgClr, ret.fill.bgClr, editorId);
} }
if(!ret.fill.bgClr)
{
ret.fill.bgClr = CreateUniColorRGB(0, 0, 0);
}
break; break;
} }
......
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