Skip to content

Commit 504d469

Browse files
authored
This closes #1298, fix doc properties missing after creating new worksheet
1 parent fd0eb2b commit 504d469

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

sheet.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ func (f *File) NewSheet(sheet string) int {
5353
}
5454
}
5555
sheetID++
56-
// Update docProps/app.xml
57-
f.setAppXML()
5856
// Update [Content_Types].xml
5957
f.setContentTypes("/xl/worksheets/sheet"+strconv.Itoa(sheetID)+".xml", ContentTypeSpreadSheetMLWorksheet)
6058
// Create new sheet /xl/worksheets/sheet%d.xml
@@ -239,11 +237,6 @@ func (f *File) relsWriter() {
239237
})
240238
}
241239

242-
// setAppXML update docProps/app.xml file of XML.
243-
func (f *File) setAppXML() {
244-
f.saveFileList(defaultXMLPathDocPropsApp, []byte(templateDocpropsApp))
245-
}
246-
247240
// replaceRelationshipsBytes; Some tools that read spreadsheet files have very
248241
// strict requirements about the structure of the input XML. This function is
249242
// a horrible hack to fix that after the XML marshalling is completed.

0 commit comments

Comments
 (0)