diff options
| author | Randy Morgan <[email protected]> | 2012-09-26 14:42:00 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-09-26 14:42:00 +0900 |
| commit | 7ae8e76838c5ccf921de032a8d7bfa6e1017d007 (patch) | |
| tree | 5e16ff075e7b261b60c891097f25215fb24906ea /lib/axlsx/util/validators.rb | |
| parent | 178335010128df34a7d0a0a6492e3e9bf1e94b99 (diff) | |
| download | caxlsx-7ae8e76838c5ccf921de032a8d7bfa6e1017d007.tar.gz caxlsx-7ae8e76838c5ccf921de032a8d7bfa6e1017d007.zip | |
pre-release readme updates and more work on auto_filter preset values
Diffstat (limited to 'lib/axlsx/util/validators.rb')
| -rw-r--r-- | lib/axlsx/util/validators.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/util/validators.rb b/lib/axlsx/util/validators.rb index 142f6dde..417de908 100644 --- a/lib/axlsx/util/validators.rb +++ b/lib/axlsx/util/validators.rb @@ -91,7 +91,7 @@ module Axlsx # @raise [ArgumentError] raised if the value is not a Fixnun, Integer, Float value greater or equal to 0 # @return [Boolean] true if the data is valid def self.validate_unsigned_numeric(v) - DataTypeValidator.validate("Invalid column width", [Fixnum, Integer, Float], v, lambda { |arg| arg.respond_to?(:>=) && arg >= 0 }) + DataTypeValidator.validate("Invalid column width", [Fixnum, Integer, Float], v, lambda { |arg| arg.respond_to?(:>=) && arg.to_i >= 0 }) end # Requires that the value is a Fixnum or Integer |
