Permalink
Browse files

added a missing require, looks like replace method doesn't modify in …

…place
  • Loading branch information...
aberant committed Mar 22, 2011
1 parent 01e77a7 commit d9501714e5bb0a13bee8bbd49fe73f3845e1a515
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/css-spriter.rb
  2. +1 −1 lib/css-spriter/sprite.rb
View
@@ -1,3 +1,4 @@
+require 'chunky_png'
require 'css-spriter/sprite'
require 'css-spriter/image'
require 'css-spriter/directory_processor'
@@ -36,7 +36,7 @@ def write( output_filename )
current_x = 0
images.each do |image|
- sprite.replace(image, current_x, 0)
+ sprite = sprite.replace(image, current_x, 0)
current_x += image.width
end

0 comments on commit d950171

Please sign in to comment.