Skip to content
This repository
Browse code

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

…place
  • Loading branch information...
commit d9501714e5bb0a13bee8bbd49fe73f3845e1a515 1 parent 01e77a7
colin harris authored
1  lib/css-spriter.rb
... ...
@@ -1,3 +1,4 @@
  1
+require 'chunky_png'
1 2
 require 'css-spriter/sprite'
2 3
 require 'css-spriter/image'
3 4
 require 'css-spriter/directory_processor'
2  lib/css-spriter/sprite.rb
@@ -36,7 +36,7 @@ def write( output_filename )
36 36
     current_x = 0
37 37
 
38 38
     images.each do |image|
39  
-      sprite.replace(image, current_x, 0)
  39
+      sprite = sprite.replace(image, current_x, 0)
40 40
       current_x += image.width
41 41
     end
42 42
 

0 notes on commit d950171

Please sign in to comment.
Something went wrong with that request. Please try again.