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

try to fix #9

This commit is contained in:
源文雨
2023-07-08 21:27:09 +08:00
parent dd75a0df96
commit 31cd269ccc

View File

@@ -279,7 +279,11 @@ func (t *WTableWidth) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err
case "w":
t.W, err = strconv.ParseInt(attr.Value, 10, 64)
if err != nil {
return
w, err := strconv.ParseFloat(attr.Value, 64)
if err != nil {
return err
}
t.W = int64(w)
}
case "type":
t.Type = attr.Value