lib/prawn/table/cell.rb in prawn-layout-0.7.1 vs lib/prawn/table/cell.rb in prawn-layout-0.7.2
- old
+ new
@@ -187,11 +187,11 @@
options[:style] = @font_style if @font_style
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
private
@@ -245,10 +245,10 @@
self
end
def draw
y = @document.y
- x = @document.bounds.absolute_left
+ x = @document.bounds.left_side
@cells.each do |e|
e.point = [x - @document.bounds.absolute_left,
y - @document.bounds.absolute_bottom]
e.height = @height