summaryrefslogtreecommitdiff
path: root/shape.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-06-27 17:53:06 +0800
committerRi Xu <xuri.me@gmail.com>2017-06-27 17:53:06 +0800
commit555e2ba9a82d6974077681c7ab34ce0fa93d351d (patch)
tree6d1d5ba963d1f2fc1cebebd61833e6b135ae8cc8 /shape.go
parent35841caaf18b20af9e7b942ca8cbb7441f310382 (diff)
- Make function `TitleToNumber()` exportable, note that function `ToAlphaString()` return value calculation changes, get more info from go doc. Relate issue #63;
- Readme and go doc updated
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 99ab291..f93cce9 100644
--- a/shape.go
+++ b/shape.go
@@ -276,7 +276,7 @@ func (f *File) addDrawingShape(sheet, drawingXML, cell string, formatSet *format
fromCol := string(strings.Map(letterOnlyMapF, cell))
fromRow, _ := strconv.Atoi(strings.Map(intOnlyMapF, cell))
row := fromRow - 1
- col := titleToNumber(fromCol)
+ col := TitleToNumber(fromCol)
width := int(float64(formatSet.Width) * formatSet.Format.XScale)
height := int(float64(formatSet.Height) * formatSet.Format.YScale)
colStart, rowStart, _, _, colEnd, rowEnd, x2, y2 := f.positionObjectPixels(sheet, col, row, formatSet.Format.OffsetX, formatSet.Format.OffsetY, width, height)