Commit 891aac5e authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

Поправила justification в ParaMath для inline формул

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61382 954022d7-b5bf-4e40-9824-e11837661b57
parent 31acc3ce
...@@ -1188,12 +1188,25 @@ ParaMath.prototype.Is_Inline = function() ...@@ -1188,12 +1188,25 @@ ParaMath.prototype.Is_Inline = function()
}; };
ParaMath.prototype.Get_Align = function() ParaMath.prototype.Get_Align = function()
{ {
if (undefined !== this.Jc) var Jc;
return this.Jc; if(this.bInline)
{
var ParaPr = this.Paragraph.Get_CompiledPr2(false);
Jc = ParaPr.Jc;
}
else if (undefined !== this.Jc)
{
Jc = this.Jc;
}
else
{
var MathSettings = Get_WordDocumentDefaultMathSettings();
Jc = MathSettings.Get_DefJc();
}
var MathSettings = Get_WordDocumentDefaultMathSettings();
return MathSettings.Get_DefJc(); return Jc;
}; };
ParaMath.prototype.Set_Align = function(Align) ParaMath.prototype.Set_Align = function(Align)
{ {
......
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