summaryrefslogtreecommitdiff
path: root/shape.go
diff options
context:
space:
mode:
authorDavid <JDavidVR@hotmail.com>2022-04-15 03:13:41 -0400
committerGitHub <noreply@github.com>2022-04-15 15:13:41 +0800
commit5a279321bb494141fb12ac010a33da4a78c6a309 (patch)
treeb038623c32700b79943341151656dce1ad01324c /shape.go
parent66776730b605dfef2d01dd8a59afc45d98272eb1 (diff)
added macro functionality to shape (#1182)
Diffstat (limited to 'shape.go')
-rw-r--r--shape.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/shape.go b/shape.go
index 514171a..8aefeea 100644
--- a/shape.go
+++ b/shape.go
@@ -32,7 +32,8 @@ func parseFormatShapeSet(formatSet string) (*formatShape, error) {
XScale: 1.0,
YScale: 1.0,
},
- Line: formatLine{Width: 1},
+ Line: formatLine{Width: 1},
+ Macro: "",
}
err := json.Unmarshal([]byte(formatSet), &format)
return &format, err
@@ -369,6 +370,7 @@ func (f *File) addDrawingShape(sheet, drawingXML, cell string, formatSet *format
twoCellAnchor.From = &from
twoCellAnchor.To = &to
shape := xdrSp{
+ Macro: formatSet.Macro,
NvSpPr: &xdrNvSpPr{
CNvPr: &xlsxCNvPr{
ID: cNvPrID,