diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-03-06 12:05:41 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-03-06 12:05:41 +0800 |
commit | 1f73f08185e664d6914c8eb849a9797b26067628 (patch) | |
tree | 71ebce585a03f13e5b68c96a12d0aa06a7756a2c /picture.go | |
parent | 48722e6482d97e742755002061bf1c7b042bfb44 (diff) |
- New feature: border setting support (Related issue #21);
- Function parameter code is simplified;
- Fix element `Tint` value parsing error in worksheet;
- Update go test
Diffstat (limited to 'picture.go')
-rw-r--r-- | picture.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -17,8 +17,8 @@ import ( // parseFormatPictureSet provides function to parse the format settings of the // picture with default value. -func parseFormatPictureSet(formatSet string) *xlsxFormatPicture { - format := xlsxFormatPicture{ +func parseFormatPictureSet(formatSet string) *formatPicture { + format := formatPicture{ FPrintsWithSheet: true, FLocksWithSheet: false, NoChangeAspect: false, @@ -194,7 +194,7 @@ func (f *File) countDrawings() int { // yAxis, file name and relationship index. In order to solve the problem that // the label structure is changed after serialization and deserialization, two // different structures: decodeWsDr and encodeWsDr are defined. -func (f *File) addDrawing(sheet, drawingXML, cell, file string, width, height, rID int, formatSet *xlsxFormatPicture) { +func (f *File) addDrawing(sheet, drawingXML, cell, file string, width, height, rID int, formatSet *formatPicture) { cell = strings.ToUpper(cell) fromCol := string(strings.Map(letterOnlyMapF, cell)) fromRow, _ := strconv.Atoi(strings.Map(intOnlyMapF, cell)) |