Commit 449fca5a authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

Поправила выравнивание формул (при открытии и сохранении документа)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62038 954022d7-b5bf-4e40-9824-e11837661b57
parent 9ed746f8
......@@ -2042,6 +2042,11 @@ ParaMath.prototype.Get_Bounds = function()
}
};
ParaMath.prototype.getPropsForWrite = function()
{
return {Jc : this.Jc};
};
/**
* Обновляем состояние интерфейса.
*/
......
......@@ -10170,7 +10170,7 @@ function Binary_oMathReader(stream)
if (c_oSer_OMathContentType.OMath === type)
{
var oMath = new ParaMath();
oMath.Set_Align(props.mJc === JC_CENTER || props.mJc === JC_CENTERGROUP ? align_Center : (props.mJc === JC_LEFT ? align_Left : (props.mJc === JC_RIGHT ? align_Right : props.mJc)));
oMath.Set_Align(props.mJc === JC_CENTER ? align_Center : props.mJc === JC_CENTERGROUP ? align_Justify : (props.mJc === JC_LEFT ? align_Left : (props.mJc === JC_RIGHT ? align_Right : props.mJc)));
oParStruct.addToContent(oMath);
res = this.bcr.Read1(length, function(t, l){
return oThis.ReadMathArg(t,l,oMath.Root,oParStruct);
......
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