Skip to content

Commit c5dc632

Browse files
committed
- Fix missing relationships in drawing content type shall, relate issue qax-os#58;
- Add a donation link, related issue qax-os#57 ^_^
1 parent d372bb9 commit c5dc632

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![Go Report Card](https://goreportcard.com/badge/github.com/Luxurioust/excelize)](https://goreportcard.com/report/github.com/Luxurioust/excelize)
88
[![GoDoc](https://godoc.org/github.com/Luxurioust/excelize?status.svg)](https://godoc.org/github.com/Luxurioust/excelize)
99
[![Licenses](https://img.shields.io/badge/license-bsd-orange.svg)](https://opensource.org/licenses/BSD-3-Clause)
10-
[![Join the chat at https://gitter.im/xuri-excelize/Lobby](https://img.shields.io/badge/GITTER-join%20chat-green.svg)](https://gitter.im/xuri-excelize/Lobby)
10+
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/xuri)
1111

1212
## Introduction
1313

chart.go

+1
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,7 @@ func (f *File) drawingParser(drawingXML string, content *xlsxWsDr) int {
812812
if ok { // Append Model
813813
decodeWsDr := decodeWsDr{}
814814
xml.Unmarshal([]byte(f.readXML(drawingXML)), &decodeWsDr)
815+
content.R = decodeWsDr.R
815816
cNvPrID = len(decodeWsDr.OneCellAnchor) + len(decodeWsDr.TwoCellAnchor) + 1
816817
for _, v := range decodeWsDr.OneCellAnchor {
817818
content.OneCellAnchor = append(content.OneCellAnchor, &xdrCellAnchor{

xmlDecodeDrawing.go

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type decodeCellAnchor struct {
1818
type decodeWsDr struct {
1919
A string `xml:"xmlns a,attr"`
2020
Xdr string `xml:"xmlns xdr,attr"`
21+
R string `xml:"xmlns r,attr"`
2122
OneCellAnchor []*decodeCellAnchor `xml:"oneCellAnchor,omitempty"`
2223
TwoCellAnchor []*decodeCellAnchor `xml:"twoCellAnchor,omitempty"`
2324
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing wsDr,omitempty"`

xmlDrawing.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@ type xlsxWsDr struct {
198198
XMLName xml.Name `xml:"xdr:wsDr"`
199199
OneCellAnchor []*xdrCellAnchor `xml:"xdr:oneCellAnchor"`
200200
TwoCellAnchor []*xdrCellAnchor `xml:"xdr:twoCellAnchor"`
201-
Xdr string `xml:"xmlns:xdr,attr"`
202-
A string `xml:"xmlns:a,attr"`
201+
A string `xml:"xmlns:a,attr,omitempty"`
202+
Xdr string `xml:"xmlns:xdr,attr,omitempty"`
203+
R string `xml:"xmlns:r,attr,omitempty"`
203204
}
204205

205206
// xlsxGraphicFrame (Graphic Frame) directly maps the xdr:graphicFrame element.

0 commit comments

Comments
 (0)