summaryrefslogtreecommitdiff
path: root/comment.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-05-24 14:17:35 +0800
committerRi Xu <xuri.me@gmail.com>2017-05-24 14:17:35 +0800
commitdea57dd0aeb5507dc4f58de48b261d4013364232 (patch)
treeb6c8b73affc39acb5a4305eac86cd48792446b44 /comment.go
parent70f6328150aa954cd9721e90883f001ea005c1ee (diff)
Code optimize.
Diffstat (limited to 'comment.go')
-rw-r--r--comment.go2
1 files changed, 1 insertions, 1 deletions
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