Permalink
Browse files

Fix fill_color bug

  • Loading branch information...
practicingruby committed Jan 5, 2010
1 parent 30f9fac commit 664760be8bc12851ddef0b030e5f06fda95d567c
Showing with 2 additions and 2 deletions.
  1. +1 −1 bugs/{ → resolved}/fill_color.rb
  2. +1 −1 lib/prawn/table/cell.rb
@@ -2,7 +2,7 @@
#
# As of 9e48a6 (2009.01.03), this code fails to recognize fill_color in tables.
#
-$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..','lib')
require "prawn/core"
require "prawn/layout"
View
@@ -189,7 +189,7 @@ def draw
old_color = @document.fill_color || "000000"
@document.fill_color @text_color if @text_color
@document.text @text, options
- @document.fill_color "000000"
+ @document.fill_color old_color
end
end

0 comments on commit 664760b

Please sign in to comment.