Commit dd2e881f authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Bug 30323 - [TextArt][CoEdit] Юзеру приходит textart без изменения уровня прозрачности

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64704 954022d7-b5bf-4e40-9824-e11837661b57
parent 24dc3e64
...@@ -2192,7 +2192,19 @@ ...@@ -2192,7 +2192,19 @@
asc_getFill: function() { return this.fill; }, asc_getFill: function() { return this.fill; },
asc_putFill: function(v) { this.fill = v; }, asc_putFill: function(v) { this.fill = v; },
asc_getTransparent: function() { return this.transparent; }, asc_getTransparent: function() { return this.transparent; },
asc_putTransparent: function(v) { this.transparent = v; } asc_putTransparent: function(v) { this.transparent = v; },
asc_CheckForseSet: function()
{
if(isRealNumber(this.transparent))
{
return true;
}
if(isRealObject(this.fill) && this.fill.Positions != null)
{
return true;
}
return false;
}
} }
//{ asc_CShapeFill export //{ asc_CShapeFill export
...@@ -2207,6 +2219,7 @@ ...@@ -2207,6 +2219,7 @@
prot["get_transparent"] = prot["asc_getTransparent"] = prot.asc_getTransparent; prot["get_transparent"] = prot["asc_getTransparent"] = prot.asc_getTransparent;
prot["put_transparent"] = prot["asc_putTransparent"] = prot.asc_putTransparent; prot["put_transparent"] = prot["asc_putTransparent"] = prot.asc_putTransparent;
prot["asc_CheckForseSet"] = prot["asc_CheckForseSet"] = prot.asc_CheckForseSet;
//} //}
......
...@@ -6084,7 +6084,7 @@ ParaRun.prototype.Apply_Pr = function(TextPr) ...@@ -6084,7 +6084,7 @@ ParaRun.prototype.Apply_Pr = function(TextPr)
if(!this.Paragraph.bFromDocument) if(!this.Paragraph.bFromDocument)
{ {
var oCompiledPr = this.Get_CompiledPr(true); var oCompiledPr = this.Get_CompiledPr(true);
this.Set_Unifill(CorrectUniFill(TextPr.AscUnifill, oCompiledPr.Unifill, 0)); this.Set_Unifill(CorrectUniFill(TextPr.AscUnifill, oCompiledPr.Unifill, 0), isRealObject(TextPr.AscUnifill) && TextPr.AscUnifill.asc_CheckForseSet() );
this.Set_Color(undefined); this.Set_Color(undefined);
this.Set_TextFill(undefined); this.Set_TextFill(undefined);
} }
...@@ -6117,7 +6117,7 @@ ParaRun.prototype.Apply_Pr = function(TextPr) ...@@ -6117,7 +6117,7 @@ ParaRun.prototype.Apply_Pr = function(TextPr)
} }
this.Set_Unifill(undefined); this.Set_Unifill(undefined);
this.Set_Color(undefined); this.Set_Color(undefined);
this.Set_TextFill(CorrectUniFill(TextPr.AscFill, oMergeUnifill, 0)); this.Set_TextFill(CorrectUniFill(TextPr.AscFill, oMergeUnifill, 0), isRealObject(TextPr.AscFill) && TextPr.AscFill.asc_CheckForseSet());
} }
} }
...@@ -6334,9 +6334,9 @@ ParaRun.prototype.Set_Color = function(Value) ...@@ -6334,9 +6334,9 @@ ParaRun.prototype.Set_Color = function(Value)
} }
}; };
ParaRun.prototype.Set_Unifill = function(Value) ParaRun.prototype.Set_Unifill = function(Value, bForce)
{ {
if ( ( undefined === Value && undefined !== this.Pr.Unifill ) || ( Value instanceof CUniFill && ( undefined === this.Pr.Unifill || false === CompareUnifillBool(this.Pr.Unifill, Value) ) ) ) if ( ( undefined === Value && undefined !== this.Pr.Unifill ) || ( Value instanceof CUniFill && ( undefined === this.Pr.Unifill || false === CompareUnifillBool(this.Pr.Unifill, Value) ) ) || bForce )
{ {
var OldValue = this.Pr.Unifill; var OldValue = this.Pr.Unifill;
this.Pr.Unifill = Value; this.Pr.Unifill = Value;
...@@ -6347,9 +6347,9 @@ ParaRun.prototype.Set_Unifill = function(Value) ...@@ -6347,9 +6347,9 @@ ParaRun.prototype.Set_Unifill = function(Value)
this.private_UpdateTrackRevisionOnChangeTextPr(true); this.private_UpdateTrackRevisionOnChangeTextPr(true);
} }
}; };
ParaRun.prototype.Set_TextFill = function(Value) ParaRun.prototype.Set_TextFill = function(Value, bForce)
{ {
if ( ( undefined === Value && undefined !== this.Pr.TextFill ) || ( Value instanceof CUniFill && ( undefined === this.Pr.TextFill || false === CompareUnifillBool(this.Pr.TextFill.IsIdentical, Value) ) ) ) if ( ( undefined === Value && undefined !== this.Pr.TextFill ) || ( Value instanceof CUniFill && ( undefined === this.Pr.TextFill || false === CompareUnifillBool(this.Pr.TextFill.IsIdentical, Value) ) ) || bForce )
{ {
var OldValue = this.Pr.TextFill; var OldValue = this.Pr.TextFill;
this.Pr.TextFill = Value; this.Pr.TextFill = Value;
......
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