fix number crash

This commit is contained in:
wvengen 2014-06-06 12:45:21 +02:00
parent 06bed3698f
commit ffd1c06729
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class OrderPdf < Prawn::Document
# XXX avoid underscore instead of unicode whitespace in pdf :/
def number_to_currency(number, options={})
super(number, options).gsub("\u202f", ' ')
super(number, options).gsub("\u202f", ' ') if number
end
# return fontsize after scaling it with any configured factor