summaryrefslogtreecommitdiff
path: root/chart.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2018-04-26 11:41:13 +0800
committerRi Xu <xuri.me@gmail.com>2018-04-26 11:41:13 +0800
commita9c7d6637cbf0419365aee9cc743a066bdd06b6a (patch)
tree02d9caeb2d397903f94c710ef18ea165bebaf6ee /chart.go
parent9ee57fdb388e6e0a50dd8c945c27f051205fa23d (diff)
- Support to set the positioning of a picture, relate issue #214;
- go test and godoc has been updated
Diffstat (limited to 'chart.go')
-rw-r--r--chart.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart.go b/chart.go
index 4a2774c..6168553 100644
--- a/chart.go
+++ b/chart.go
@@ -1111,7 +1111,7 @@ func (f *File) addDrawingChart(sheet, drawingXML, cell string, width, height, rI
content.Xdr = NameSpaceDrawingMLSpreadSheet
cNvPrID := f.drawingParser(drawingXML, &content)
twoCellAnchor := xdrCellAnchor{}
- twoCellAnchor.EditAs = "oneCell"
+ twoCellAnchor.EditAs = formatSet.Positioning
from := xlsxFrom{}
from.Col = colStart
from.ColOff = formatSet.OffsetX * EMU