diff --git a/src/gen-xml.ts b/src/gen-xml.ts
index 3a8d5d4e..20e5fb21 100644
--- a/src/gen-xml.ts
+++ b/src/gen-xml.ts
@@ -1618,7 +1618,7 @@ export function makeXmlMaster (slide: PresSlide, layouts: SlideLayout[]): string
strXml +=
''
strXml += '' + layoutDefs.join('') + ''
- strXml += ''
+ strXml += slide._slideNumberProps !== null ? '' : ''
strXml +=
'' +
' ' +