1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-05 07:40:24 +08:00

初步添加shape

This commit is contained in:
源文雨
2023-02-26 22:26:38 +08:00
parent 1f52bf35fe
commit c8aae913f2
6 changed files with 358 additions and 55 deletions

View File

@@ -741,10 +741,6 @@ func (p *PICSpPr) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
return err
}
case "prstGeom":
err = d.DecodeElement(&p.PrstGeom, &tt)
if err != nil && !strings.HasPrefix(err.Error(), "expected") {
return err
}
p.PrstGeom.Prst = getAtt(tt.Attr, "prst")
default:
err = d.Skip() // skip unsupported tags