Commit edd64bcc authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix bug with writing math props

parent bad93ce2
......@@ -9964,6 +9964,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oMathAcc, props);
if (oParent)
oParent.addElementToContent(oMathAcc);
if(oParStruct)
oMathAcc.Paragraph = oParStruct.paragraph;
oContent.content = oMathAcc.getBase();
}
else if (c_oSer_OMathContentType.Element === type)
......@@ -10302,6 +10304,9 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oBar, props);
if (oParent)
oParent.addElementToContent(oBar);
if(oParStruct)
oBar.Paragraph = oParStruct.paragraph;
oContent.content = oBar.getBase();
}
else if (c_oSer_OMathContentType.Element === type)
......@@ -10366,6 +10371,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oBorderBox, props);
if (oParent)
oParent.addElementToContent(oBorderBox);
if(oParStruct)
oBorderBox.Paragraph = oParStruct.paragraph;
oContent.content = oBorderBox.getBase();
}
else if (c_oSer_OMathContentType.Element === type)
......@@ -10453,6 +10460,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oBox, props);
if (oParent)
oParent.addElementToContent(oBox);
if(oParStruct)
oBox.Paragraph = oParStruct.paragraph;
oContent.content = oBox.getBase();
}
else if (c_oSer_OMathContentType.Element === type)
......@@ -10643,6 +10652,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var oDelimiter = new CDelimiter(props);
initMathRevisions(oDelimiter, props);
oElem.addElementToContent(oDelimiter);
if(oParStruct)
oDelimiter.Paragraph = oParStruct.paragraph;
for (var i=0; i<props.column; i++)
arrContent[i] = oDelimiter.getBase(i);
}
......@@ -10749,6 +10760,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
var oEqArr = new CEqArray(props);
initMathRevisions(oEqArr, props);
oElem.addElementToContent(oEqArr);
if(oParStruct)
oEqArr.Paragraph = oParStruct.paragraph;
for (var i=0; i<props.row; i++)
arrContent[i] = oEqArr.getElement(i);
}
......@@ -10833,6 +10846,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oFraction, props);
if (oParent)
oParent.addElementToContent(oFraction);
if(oParStruct)
oFraction.Paragraph = oParStruct.paragraph;
oElemDen.content = oFraction.getDenominator();
oElemNum.content = oFraction.getNumerator();
}
......@@ -10844,6 +10859,9 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oFraction, props);
if (oParent)
oParent.addElementToContent(oFraction);
if(oParStruct)
oFraction.Paragraph = oParStruct.paragraph;
oElemDen.content = oFraction.getDenominator();
oElemNum.content = oFraction.getNumerator();
}
......@@ -10859,6 +10877,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oFraction, props);
if (oParent)
oParent.addElementToContent(oFraction);
if(oParStruct)
oFraction.Paragraph = oParStruct.paragraph;
oElemDen.content = oFraction.getDenominator();
oElemNum.content = oFraction.getNumerator();
}
......@@ -10903,6 +10923,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oFunc, props);
if (oParent)
oParent.addElementToContent(oFunc);
if(oParStruct)
oFunc.Paragraph = oParStruct.paragraph;
oContent.content = oFunc.getArgument();
oName.content = oFunc.getFName();
}
......@@ -10961,6 +10983,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oGroupChr, props);
if (oParent)
oParent.addElementToContent(oGroupChr);
if(oParStruct)
oGroupChr.Paragraph = oParStruct.paragraph;
oContent.content = oGroupChr.getBase();
}
else if (c_oSer_OMathContentType.Element === type)
......@@ -11085,6 +11109,9 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oLimLow, props);
if (oParent)
oParent.addElementToContent(oLimLow);
if(oParStruct)
oLimLow.Paragraph = oParStruct.paragraph;
oContent.content = oLimLow.getFName();
oLim.content = oLimLow.getIterator();
}
......@@ -11132,6 +11159,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oLimUpp, props);
if (oParent)
oParent.addElementToContent(oLimUpp);
if(oParStruct)
oLimUpp.Paragraph = oParStruct.paragraph;
oContent.content = oLimUpp.getFName();
oLim.content = oLimUpp.getIterator();
}
......@@ -11543,6 +11572,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oNary, props);
if (oParent)
oParent.addElementToContent(oNary);
if(oParStruct)
oNary.Paragraph = oParStruct.paragraph;
oSub.content = oNary.getLowerIterator();
oSup.content = oNary.getUpperIterator();
oContent.content = oNary.getBase();
......@@ -11731,6 +11762,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oPhant, props);
if (oParent)
oParent.addElementToContent(oPhant);
if(oParStruct)
oPhant.Paragraph = oParStruct.paragraph;
oContent.content = oPhant.getBase();
}
else if (c_oSer_OMathContentType.Element === type)
......@@ -11830,6 +11863,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oRad.content, props);
if (oParent)
oParent.addElementToContent(oRad.content);
if(oParStruct)
oRad.Paragraph = oParStruct.paragraph;
oDeg.content = oRad.content.getDegree();
oContent.content = oRad.content.getBase();
}
......@@ -11963,6 +11998,9 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oSPre, props);
if (oParent)
oParent.addElementToContent(oSPre);
if(oParStruct)
oSPre.Paragraph = oParStruct.paragraph;
oSub.content = oSPre.getLowerIterator();
oSup.content = oSPre.getUpperIterator();
oContent.content = oSPre.getBase();
......@@ -12017,6 +12055,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oSSub, props);
if (oParent)
oParent.addElementToContent(oSSub);
if(oParStruct)
oSSub.Paragraph = oParStruct.paragraph;
oSub.content = oSSub.getLowerIterator();
oContent.content = oSSub.getBase();
}
......@@ -12064,6 +12104,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oSSubSup, props);
if (oParent)
oParent.addElementToContent(oSSubSup);
if(oParStruct)
oSSubSup.Paragraph = oParStruct.paragraph;
oSub.content = oSSubSup.getLowerIterator();
oSup.content = oSSubSup.getUpperIterator();
oContent.content = oSSubSup.getBase();
......@@ -12157,6 +12199,8 @@ function Binary_oMathReader(stream, oReadResult, curFootnote)
initMathRevisions(oSSup, props);
if (oParent)
oParent.addElementToContent(oSSup);
if(oParStruct)
oSSup.Paragraph = oParStruct.paragraph;
oSup.content = oSSup.getUpperIterator();
oContent.content = oSSup.getBase();
}
......
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