summaryrefslogtreecommitdiff
path: root/col.go
diff options
context:
space:
mode:
Diffstat (limited to 'col.go')
-rw-r--r--col.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/col.go b/col.go
index 72db4be..19ce99b 100644
--- a/col.go
+++ b/col.go
@@ -444,6 +444,9 @@ func (f *File) SetColWidth(sheet, startcol, endcol string, width float64) error
if err != nil {
return err
}
+ if width > MaxColumnWidth {
+ return errors.New("the width of the column must be smaller than or equal to 255 characters")
+ }
if min > max {
min, max = max, min
}