diff --git a/lib/prawn/grid.rb b/lib/prawn/grid.rb index 80cd9e268..7413e68b8 100644 --- a/lib/prawn/grid.rb +++ b/lib/prawn/grid.rb @@ -145,12 +145,12 @@ def subdivide(total, num, gutter) def apply_gutter(options) if options.key?(:gutter) - @gutter = Float(options[:gutter]) + @gutter = Float(options[:gutter] || 0.0) @row_gutter = @gutter @column_gutter = @gutter else - @row_gutter = Float(options[:row_gutter]) - @column_gutter = Float(options[:column_gutter]) + @row_gutter = Float(options[:row_gutter] || 0.0) + @column_gutter = Float(options[:column_gutter] || 0.0) @gutter = 0 end end