Run prop snapToGrid should be false

This commit is contained in:
Morlay
2023-12-06 10:15:46 +08:00
parent 3eb98533ae
commit 579593a467

View File

@ -261,7 +261,7 @@ export class RunProperties extends IgnoreIfEmptyXmlComponent {
this.push(new BorderElement("w:bdr", options.border)); this.push(new BorderElement("w:bdr", options.border));
} }
if (options.snapToGrid) { if (options.snapToGrid !== undefined) {
this.push(new OnOffElement("w:snapToGrid", options.snapToGrid)); this.push(new OnOffElement("w:snapToGrid", options.snapToGrid));
} }