lib/rabbit/element/base.rb in rabbit-0.6.3 vs lib/rabbit/element/base.rb in rabbit-0.6.4
- old
+ new
@@ -457,10 +457,10 @@
end
end
def _draw(canvas, x, y, w, h, simulation)
around_draw_procs = @around_draw_procs.dup
- around_draw_procs.concat(slide.waited_draw_procs(self))
+ around_draw_procs.concat(slide.waited_draw_procs(self)) if slide
_draw_rec(canvas, x, y, w, h, simulation, around_draw_procs)
end
def _draw_rec(canvas, x, y, w, h, simulation, around_draw_procs)
if around_draw_procs.empty?