summaryrefslogtreecommitdiff
path: root/shape.go
diff options
context:
space:
mode:
Diffstat (limited to 'shape.go')
-rw-r--r--shape.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/shape.go b/shape.go
index 6f7c8fd..2022ee6 100644
--- a/shape.go
+++ b/shape.go
@@ -308,8 +308,7 @@ func (f *File) AddShape(sheet, cell, opts string) error {
if err = f.addDrawingShape(sheet, drawingXML, cell, options); err != nil {
return err
}
- f.addContentTypePart(drawingID, "drawings")
- return err
+ return f.addContentTypePart(drawingID, "drawings")
}
// addDrawingShape provides a function to add preset geometry by given sheet,