diff --git a/structsect.go b/structsect.go index de8917c..fda9d32 100644 --- a/structsect.go +++ b/structsect.go @@ -74,7 +74,7 @@ func (pgsz *PgSz) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { case "w": pgsz.W = xml.Attr{Name: xml.Name{Local: "w:w"}, Value: attr.Value} case "h": - pgsz.H = xml.Attr{Name: xml.Name{Local: "w:w"}, Value: attr.Value} + pgsz.H = xml.Attr{Name: xml.Name{Local: "w:h"}, Value: attr.Value} default: // ignore other attributes now }