make default settings in the addSection

This commit is contained in:
Dolan
2018-06-25 21:53:01 +01:00
parent 00955d2e4f
commit 2a0b45dc20

View File

@ -28,7 +28,11 @@ export class Body extends XmlComponent {
if (section instanceof SectionProperties) { if (section instanceof SectionProperties) {
this.sections.push(section); this.sections.push(section);
} else { } else {
this.sections.push(new SectionProperties(section)); const params = {
...this.defaultSection.Options,
...section,
};
this.sections.push(new SectionProperties(params));
} }
} }
public prepForXml(): IXmlableObject { public prepForXml(): IXmlableObject {