lib/axlsx/workbook/worksheet/col.rb in axlsx-1.1.3 vs lib/axlsx/workbook/worksheet/col.rb in axlsx-1.1.4
- old
+ new
@@ -58,10 +58,11 @@
@hidden = v
end
# @see Col#outline
def outlineLevel=(v)
- Axlsx.validate_boolean(v)
+ Axlsx.validate_unsigned_numeric(v)
+ raise ArgumentError, 'outlineLevel must be between 0 and 7' unless 0 <= v && v <= 7
@outlineLevel = v
end
# @see Col#phonetic
def phonetic=(v)