From 579593a467ac0fabba9e47beb68542ce008a8745 Mon Sep 17 00:00:00 2001 From: Morlay Date: Wed, 6 Dec 2023 10:15:46 +0800 Subject: [PATCH] Run prop snapToGrid should be false --- src/file/paragraph/run/properties.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file/paragraph/run/properties.ts b/src/file/paragraph/run/properties.ts index 0a47af8b483..526025d2edb 100644 --- a/src/file/paragraph/run/properties.ts +++ b/src/file/paragraph/run/properties.ts @@ -261,7 +261,7 @@ export class RunProperties extends IgnoreIfEmptyXmlComponent { this.push(new BorderElement("w:bdr", options.border)); } - if (options.snapToGrid) { + if (options.snapToGrid !== undefined) { this.push(new OnOffElement("w:snapToGrid", options.snapToGrid)); }