Commit 7c86c4f3 authored by SergeyLuzyanin's avatar SergeyLuzyanin

privateGenerateShape

parent 3d14f1e6
......@@ -3326,6 +3326,9 @@
}
var oContent = oShape.getDocContent();
var aParagraphsS = obj['paragraphs'];
if(aParagraphsS.length > 0){
oContent.Content.length = 0;
}
for(var i = 0; i < aParagraphsS.length; ++i){
var oCurParS = aParagraphsS[i];
var oNewParagraph = new Paragraph(oContent.DrawingDocument, oContent);
......@@ -3341,7 +3344,7 @@
oNewParagraph.Set_Shd(oShd, true);
}
if(AscFormat.isRealNumber(oCurParS['linespacing'])){
oNewParagraph.Set_Spacing({Line: oCurParS['linespacing'], LineRule: Asc.linerule_Exact});
oNewParagraph.Set_Spacing({Line: oCurParS['linespacing'], LineRule: Asc.linerule_Auto}, true);
}
var aRunsS = oCurParS['runs'];
for(var j = 0; j < aRunsS.length; ++j){
......
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