summaryrefslogtreecommitdiff
path: root/xmlWorksheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-01-12 00:18:15 +0800
committerxuri <xuri.me@gmail.com>2022-01-12 00:18:15 +0800
commitb96329cc88b87da25a4389f1d4d5ad08cd40605a (patch)
tree4f05daa1402bbbd27bc35ecb7ad9e95b5cb31e76 /xmlWorksheet.go
parent891e5baac1a6ac67123fbc6a68f801720882b8ec (diff)
Breaking change for data validation and fixed #1117
- Remove second useless parameter `isCurrentSheet` of the function `SetSqrefDropList` - Fix missing page setup of worksheet after re-saving the spreadsheet
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r--xmlWorksheet.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go
index 5c121d9..649377b 100644
--- a/xmlWorksheet.go
+++ b/xmlWorksheet.go
@@ -112,16 +112,16 @@ type xlsxPageSetUp struct {
Draft bool `xml:"draft,attr,omitempty"`
Errors string `xml:"errors,attr,omitempty"`
FirstPageNumber string `xml:"firstPageNumber,attr,omitempty"`
- FitToHeight int `xml:"fitToHeight,attr,omitempty"`
- FitToWidth int `xml:"fitToWidth,attr,omitempty"`
+ FitToHeight *int `xml:"fitToHeight,attr"`
+ FitToWidth *int `xml:"fitToWidth,attr,omitempty"`
HorizontalDPI int `xml:"horizontalDpi,attr,omitempty"`
RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
Orientation string `xml:"orientation,attr,omitempty"`
PageOrder string `xml:"pageOrder,attr,omitempty"`
PaperHeight string `xml:"paperHeight,attr,omitempty"`
- PaperSize int `xml:"paperSize,attr,omitempty"`
+ PaperSize *int `xml:"paperSize,attr,omitempty"`
PaperWidth string `xml:"paperWidth,attr,omitempty"`
- Scale int `xml:"scale,attr,omitempty"`
+ Scale int `xml:"scale,attr"`
UseFirstPageNumber bool `xml:"useFirstPageNumber,attr,omitempty"`
UsePrinterDefaults bool `xml:"usePrinterDefaults,attr,omitempty"`
VerticalDPI int `xml:"verticalDpi,attr,omitempty"`