summaryrefslogtreecommitdiff
path: root/shape.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-05-07 16:12:51 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2018-05-07 16:12:51 +0800
commit38ad20efc11c1872c4e62a12617f0300c138b867 (patch)
tree7190083ed4fa8ddaa1ec3b9ecb260423451f3164 /shape.go
parentbc451a78de32ccde2a4f6d0851ea6e41e45408f1 (diff)
save bytes on memory instead of string
Diffstat (limited to 'shape.go')
-rw-r--r--shape.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/shape.go b/shape.go
index f1328f7..0b93752 100644
--- a/shape.go
+++ b/shape.go
@@ -390,7 +390,7 @@ func (f *File) addDrawingShape(sheet, drawingXML, cell string, formatSet *format
}
content.TwoCellAnchor = append(content.TwoCellAnchor, &twoCellAnchor)
output, _ := xml.Marshal(content)
- f.saveFileList(drawingXML, string(output))
+ f.saveFileList(drawingXML, output)
}
// setShapeRef provides function to set color with hex model by given actual