diff options
author | Ri Xu <xuri.me@gmail.com> | 2016-09-22 13:29:57 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2016-09-22 13:29:57 +0800 |
commit | d877d9f246c5232edd1d8eb4e3e8b5cca7cf1221 (patch) | |
tree | 6762605cc0e0067851a37e14eb10d2f7db447a40 | |
parent | 9e0aca22233da1326794d378c3d06acbc4e76a8e (diff) |
Fix zoom scale and page layout view setting of XLSX.
-rw-r--r-- | test/Workbook1.xlsx | bin | 18281 -> 25345 bytes | |||
-rw-r--r-- | xmlWorksheet.go | 12 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/Workbook1.xlsx b/test/Workbook1.xlsx Binary files differindex 81565d6..1719293 100644 --- a/test/Workbook1.xlsx +++ b/test/Workbook1.xlsx diff --git a/xmlWorksheet.go b/xmlWorksheet.go index 0421c51..1fd1781 100644 --- a/xmlWorksheet.go +++ b/xmlWorksheet.go @@ -143,12 +143,12 @@ type xlsxSheetView struct { // View string `xml:"view,attr"` TopLeftCell string `xml:"topLeftCell,attr,omitempty"` // ColorId int `xml:"colorId,attr"` - // ZoomScale float64 `xml:"zoomScale,attr"` - // ZoomScaleNormal float64 `xml:"zoomScaleNormal,attr"` - // ZoomScalePageLayoutView float64 `xml:"zoomScalePageLayoutView,attr"` - WorkbookViewID int `xml:"workbookViewId,attr"` - Selection []xlsxSelection `xml:"selection"` - Pane *xlsxPane `xml:"pane,omitempty"` + ZoomScale float64 `xml:"zoomScale,attr,omitempty"` + ZoomScaleNormal float64 `xml:"zoomScaleNormal,attr,omitempty"` + ZoomScalePageLayoutView float64 `xml:"zoomScalePageLayoutView,attr,omitempty"` + WorkbookViewID int `xml:"workbookViewId,attr"` + Selection []xlsxSelection `xml:"selection"` + Pane *xlsxPane `xml:"pane,omitempty"` } // xlsxSelection directly maps the selection element in the namespace |