forked from p30928647/excelize
Fixed checking accessible value for ZoomScale, was missed in last commit
This commit is contained in:
parent
4efc3dd8f0
commit
9933a49f0e
|
@ -79,8 +79,11 @@ func (o *ShowRowColHeaders) getSheetViewOption(view *xlsxSheetView) {
|
|||
}
|
||||
|
||||
func (o ZoomScale) setSheetViewOption(view *xlsxSheetView) {
|
||||
//This attribute is restricted to values ranging from 10 to 400.
|
||||
if float64(o) >= 10 && float64(o) <= 400 {
|
||||
view.ZoomScale = float64(o)
|
||||
}
|
||||
}
|
||||
|
||||
func (o *ZoomScale) getSheetViewOption(view *xlsxSheetView) {
|
||||
*o = ZoomScale(view.ZoomScale)
|
||||
|
|
Loading…
Reference in New Issue