Add no null rule

This commit is contained in:
Dolan
2018-08-06 03:49:27 +01:00
parent 257c8bde99
commit 9e11774a1b
3 changed files with 5 additions and 3 deletions

View File

@ -62,7 +62,7 @@ export class Anchor extends XmlComponent {
this.root.push(new Extent(dimensions.emus.x, dimensions.emus.y));
this.root.push(new EffectExtent());
if (drawingOptions.textWrapping != null) {
if (drawingOptions.textWrapping !== undefined) {
switch (drawingOptions.textWrapping.textWrapStyle) {
case TextWrapStyle.SQUARE:
this.root.push(new WrapSquare(drawingOptions.textWrapping));