Commit b145d204 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@63631 954022d7-b5bf-4e40-9824-e11837661b57
parent 016edd18
...@@ -5015,7 +5015,7 @@ function CompareUnifillBool(u1, u2) ...@@ -5015,7 +5015,7 @@ function CompareUnifillBool(u1, u2)
return false; return false;
for(var i = 0; i < u1.fill.colors.length; ++i) for(var i = 0; i < u1.fill.colors.length; ++i)
{ {
if(u1.fill.colors[i].pos !== u1.fill.colors[i].pos if(u1.fill.colors[i].pos !== u2.fill.colors[i].pos
|| ! CompareUniColor(u1.fill.colors[i].color, u2.fill.colors[i].color)) || ! CompareUniColor(u1.fill.colors[i].color, u2.fill.colors[i].color))
return false; return false;
} }
......
...@@ -5936,9 +5936,10 @@ ParaRun.prototype.Apply_Pr = function(TextPr) ...@@ -5936,9 +5936,10 @@ ParaRun.prototype.Apply_Pr = function(TextPr)
} }
else if(undefined !== TextPr.AscUnifill && this.Paragraph) else if(undefined !== TextPr.AscUnifill && this.Paragraph)
{ {
if(this.Paragraph && !this.Paragraph.bFromDocument) if(!this.Paragraph.bFromDocument)
{ {
this.Set_Unifill(CorrectUniFill(TextPr.AscUnifill, this.CompiledPr.Unifill, 0)); var oCompiledPr = this.Get_CompiledPr(true);
this.Set_Unifill(CorrectUniFill(TextPr.AscUnifill, oCompiledPr.Unifill, 0));
this.Set_Color(undefined); this.Set_Color(undefined);
this.Set_TextFill(undefined); this.Set_TextFill(undefined);
} }
...@@ -5955,17 +5956,18 @@ ParaRun.prototype.Apply_Pr = function(TextPr) ...@@ -5955,17 +5956,18 @@ ParaRun.prototype.Apply_Pr = function(TextPr)
var oMergeUnifill, oColor; var oMergeUnifill, oColor;
if(this.Paragraph.bFromDocument) if(this.Paragraph.bFromDocument)
{ {
if(this.CompiledPr.TextFill) var oCompiledPr = this.Get_CompiledPr(true);
if(oCompiledPr.TextFill)
{ {
oMergeUnifill = this.CompiledPr.TextFill; oMergeUnifill = oCompiledPr.TextFill;
} }
else if(this.CompiledPr.Unifill) else if(oCompiledPr.Unifill)
{ {
oMergeUnifill = this.CompiledPr.Unifill; oMergeUnifill = oCompiledPr.Unifill;
} }
else if(this.CompiledPr.Color) else if(oCompiledPr.Color)
{ {
oColor = this.CompiledPr.Color; oColor = oCompiledPr.Color;
oMergeUnifill = CreateUnfilFromRGB(oColor.r, oColor.g, oColor.b); oMergeUnifill = CreateUnfilFromRGB(oColor.r, oColor.g, oColor.b);
} }
this.Set_Unifill(undefined); this.Set_Unifill(undefined);
......
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