Skip to content

Commit

Permalink
Merge branch 'master' of github.com:moessimple/prawn-fillform
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurice Hadamczyk committed Apr 23, 2013
2 parents 6ff4576 + bfbb9ec commit e3c04ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/prawn-fillform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def fill_form_with(data={})
if value.nil?
value = data[field.name].fetch(:value) rescue nil
end
options = field_hash.fetch(:options) rescue nil
options = data[field.name].fetch(:options) rescue nil
options ||= {}

if value
Expand All @@ -235,6 +235,7 @@ def fill_form_with(data={})
if field.type == :text
fill_color options[:font_color] || field.font_color

font options[:font_face]
text_box value, :at => [field.x + x_offset, field.y + y_offset],
:align => options[:align] || field.align,
:width => options[:width] || field.width,
Expand Down

0 comments on commit e3c04ba

Please sign in to comment.