Skip to content

Commit

Permalink
Merge pull request #15 from arachnist/fix-add_text_content
Browse files Browse the repository at this point in the history
Rename variable arr to array, fixes a call to an undefined variable below.
  • Loading branch information
practicingruby committed Mar 12, 2015
2 parents cf6916f + f8fe5f5 commit 7ea5e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pdf/core/text.rb
Expand Up @@ -237,7 +237,7 @@ def add_text_content(text, x, y, options)

if options[:rotate]
rad = options[:rotate].to_f * Math::PI / 180
arr = [ Math.cos(rad), Math.sin(rad), -Math.sin(rad), Math.cos(rad), x, y ]
array = [ Math.cos(rad), Math.sin(rad), -Math.sin(rad), Math.cos(rad), x, y ]
add_content "#{PDF::Core.real_params(array)} Tm"
else
add_content "#{x} #{y} Td"
Expand Down

0 comments on commit 7ea5e76

Please sign in to comment.