Commit 218d3070f937546a93f2a9b9045598116c870f21
1 parent
c3b809e4
Exists in
master
Updated configuration fill_color to return default value if not set
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
lib/letter_avatar/avatar.rb
@@ -68,7 +68,7 @@ module LetterAvatar | @@ -68,7 +68,7 @@ module LetterAvatar | ||
68 | -pointsize 140 | 68 | -pointsize 140 |
69 | -font #{FONT_FILENAME} | 69 | -font #{FONT_FILENAME} |
70 | -weight #{LetterAvatar.weight} | 70 | -weight #{LetterAvatar.weight} |
71 | - -fill '#{LetterAvatar.fill_color || FILL_COLOR}' | 71 | + -fill '#{LetterAvatar.fill_color}' |
72 | -gravity Center | 72 | -gravity Center |
73 | -annotate #{LetterAvatar.annotate_position} '#{identity.letter}' | 73 | -annotate #{LetterAvatar.annotate_position} '#{identity.letter}' |
74 | '#{filename}' | 74 | '#{filename}' |
lib/letter_avatar/configuration.rb