mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-21 19:13:37 +08:00
try to fix #9
This commit is contained in:
@@ -279,7 +279,11 @@ func (t *WTableWidth) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err
|
|||||||
case "w":
|
case "w":
|
||||||
t.W, err = strconv.ParseInt(attr.Value, 10, 64)
|
t.W, err = strconv.ParseInt(attr.Value, 10, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
w, err := strconv.ParseFloat(attr.Value, 64)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
t.W = int64(w)
|
||||||
}
|
}
|
||||||
case "type":
|
case "type":
|
||||||
t.Type = attr.Value
|
t.Type = attr.Value
|
||||||
|
|||||||
Reference in New Issue
Block a user