Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: can't convert nil into Float #1344

Closed
andreavocado opened this issue Mar 12, 2024 · 1 comment
Closed

TypeError: can't convert nil into Float #1344

andreavocado opened this issue Mar 12, 2024 · 1 comment

Comments

@andreavocado
Copy link

Actual Behaviour

With v2.5.0 Following code raises TypeError: can't convert nil into Float Exception:

define_grid(rows: 3, columns: 2)

Stacktrace

# /baseimage/cache/bundler/ruby/3.2.0/gems/prawn-2.5.0/lib/prawn/grid.rb:152:in `apply_gutter'
# /baseimage/cache/bundler/ruby/3.2.0/gems/prawn-2.5.0/lib/prawn/grid.rb:111:in `initialize'
# /baseimage/cache/bundler/ruby/3.2.0/gems/prawn-2.5.0/lib/prawn/grid.rb:26:in `new'
# /baseimage/cache/bundler/ruby/3.2.0/gems/prawn-2.5.0/lib/prawn/grid.rb:26:in `define_grid'

Introduced

Introduced with commit be66ddd#diff-316e1e68603693aee61e42d1332a3b54a403d538da2b4285d0fd0400075cd4fc

Expected Behaviour

  • define_grid(rows: 3, columns: 2) uses a default gutter and throws no error
  • The documentation is updated
@gettalong
Copy link
Member

Duplicate of #1343 - I'm closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants