Commit b7b8773a authored by Sergey.Tsarkov's avatar Sergey.Tsarkov Committed by Alexander.Trofimov

баг на запись формул

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56662 954022d7-b5bf-4e40-9824-e11837661b57
parent 4cf4c8b2
......@@ -1906,14 +1906,14 @@ function Binary_oMathWriter(memory, oMathPara)
//var oText = {Text: ""};
//oMRun.Get_Text(oText);
var props = oMRun.getPropsForWrite();
var oText = null;
var oText = "";
var ContentLen = oMRun.Content.length;
for ( var CurPos = 0; CurPos < ContentLen; CurPos++ )
{
var Item = oMRun.Content[CurPos];
switch ( Item.type )
switch ( Item.Type )
{
case para_Text : oText += String.fromCharCode(Item.value); break;
case para_Math_Text : oText += String.fromCharCode(Item.value); break;
case para_Space:
case para_Tab : oText += " "; break;
}
......@@ -1921,8 +1921,7 @@ function Binary_oMathWriter(memory, oMathPara)
this.bs.WriteItem(c_oSer_OMathContentType.RPr, function(){oThis.brPrs.Write_rPr(props.wRPrp);}); // w:rPr
this.bs.WriteItem(c_oSer_OMathContentType.MRPr, function(){oThis.WriteMRPr(props.mathRPrp);}); // m:rPr
if (oText != null)
this.bs.WriteItem(c_oSer_OMathContentType.MText, function(){ oThis.memory.WriteString2(oText);});
this.bs.WriteItem(c_oSer_OMathContentType.MText, function(){ oThis.memory.WriteString2(oText);});
}
this.WriteAcc = function(oAcc)
{
......
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