From dea57dd0aeb5507dc4f58de48b261d4013364232 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Wed, 24 May 2017 14:17:35 +0800 Subject: Code optimize. --- comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comment.go') diff --git a/comment.go b/comment.go index 3dae11a..4010942 100644 --- a/comment.go +++ b/comment.go @@ -47,7 +47,7 @@ func (f *File) AddComment(sheet, cell, format string) { commentsXML := "xl/comments" + strconv.Itoa(commentID) + ".xml" f.addComment(commentsXML, cell, formatSet) f.addDrawingVML(commentID, drawingVML, cell) - f.addCommentsContentTypePart(commentID) + f.addContentTypePart(commentID, "comments") } // addDrawingVML provides function to create comment as -- cgit v1.2.1