Skip to content

Commit d877d9f

Browse files
committed
Fix zoom scale and page layout view setting of XLSX.
1 parent 9e0aca2 commit d877d9f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/Workbook1.xlsx

6.9 KB
Binary file not shown.

xmlWorksheet.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ type xlsxSheetView struct {
143143
// View string `xml:"view,attr"`
144144
TopLeftCell string `xml:"topLeftCell,attr,omitempty"`
145145
// ColorId int `xml:"colorId,attr"`
146-
// ZoomScale float64 `xml:"zoomScale,attr"`
147-
// ZoomScaleNormal float64 `xml:"zoomScaleNormal,attr"`
148-
// ZoomScalePageLayoutView float64 `xml:"zoomScalePageLayoutView,attr"`
149-
WorkbookViewID int `xml:"workbookViewId,attr"`
150-
Selection []xlsxSelection `xml:"selection"`
151-
Pane *xlsxPane `xml:"pane,omitempty"`
146+
ZoomScale float64 `xml:"zoomScale,attr,omitempty"`
147+
ZoomScaleNormal float64 `xml:"zoomScaleNormal,attr,omitempty"`
148+
ZoomScalePageLayoutView float64 `xml:"zoomScalePageLayoutView,attr,omitempty"`
149+
WorkbookViewID int `xml:"workbookViewId,attr"`
150+
Selection []xlsxSelection `xml:"selection"`
151+
Pane *xlsxPane `xml:"pane,omitempty"`
152152
}
153153

154154
// xlsxSelection directly maps the selection element in the namespace

0 commit comments

Comments
 (0)