From d877d9f246c5232edd1d8eb4e3e8b5cca7cf1221 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Thu, 22 Sep 2016 13:29:57 +0800 Subject: Fix zoom scale and page layout view setting of XLSX. --- test/Workbook1.xlsx | Bin 18281 -> 25345 bytes xmlWorksheet.go | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/Workbook1.xlsx b/test/Workbook1.xlsx index 81565d6..1719293 100644 Binary files a/test/Workbook1.xlsx and b/test/Workbook1.xlsx differ 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 -- cgit v1.2.1