forked from prawnpdf/prawn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fallback to 0.0 in case of no gutter, fixes prawnpdf#1343
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
afdev82
Author
|
||
@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 | ||
|
this won't help as the first statement does not return
nil
but will raise an exception